代码拉取完成,页面将自动刷新
同步操作将从 NeatLogic/neatlogic-tagent-client 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
中文 / English
Neatlogic-Tagent用于部署在受管目标操作系统上,平滑替代主机连接协议一种可选方式,Tagent具备以下几点特点:
Neatlogic-Tagent常见几种适用场景:
Neatlogic-Tagent两种获取安装包:
#非windows
tagent.tar
#windows 32位
tagent_windows_x32.zip
#windows 64位
tagent_windows_x64.zip
#####安装包说明############
#Neatlogic-runner 自带3个安装包
#Unix类:tagent.tar
#Windows 32类:tagent_windows_x32.zip
#Windows 64类:tagent_windows_x64.zip
##########################
#eg:获取Unix安装包
#格式: http://Neatlogic-runner机器IP:8084/autoexecrunner/tagent/download/tagent.tar
# 示例
curl tagent.tar http://192.168.0.10:8084/autoexecrunner/tagent/download/tagent.tar
#eg: 获取Windows 64位安装包
# 示例
curl tagent_windows_x64.zip http://192.168.0.10:8084/autoexecrunner/tagent/download/tagent_windows_x64.zip
# 登录目标受管机器,下载安装包,建议统一存放/opt目录
cd /opt
curl tagent.tar http://192.168.0.10:8084/autoexecrunner/tagent/download/tagent.tar
# 解压
tar -xvf tagent.tar
# 查看shell类型
echo $0 #aix操作系统需注意,大多数默认是ksh
# 执行安装
# 参数说明:--serveraddr neatlogic-runner的访问地址 --tenant 租户名称
# shell类型是bash,示例
sh tagent/bin/setup.sh --action install --serveraddr http://192.168.0.10:8084 --tenant demo
# shell类型是ksh,示例
sh tagent/bin/setup.ksh --action install --serveraddr http://192.168.0.10:8084 --tenant demo
# 安装完检查 (3个进程)
ps -ef |grep tagent
# 查看日志
less tagent/run/root/logs/tagent.log
# 查看配置
less tagent/run/root/conf/tagent.conf
#启停
service tagent start/stop
示例:
cd c:\tagent_windows_x64
service-install.bat
# 定义runner变量
RUNNER_ADDR=http://192.168.0.10:8084 #Neatlogic-runner的IP和端口
cd /opt
# 下载安装脚本
curl -o install.sh $RUNNER_ADDR/autoexecrunner/tagent/download/install.sh
# 执行安装
bash install.sh --tenant demo --pkgurl $RUNNER_ADDR/autoexecrunner/tagent/download/tagent.tar --serveraddr $RUNNER_ADDR
# 打开浏览器输入runner地址下载install.vbs,如:http://192.168.0.10:8080/autoexecrunner/tagent/download/install.vbs
# 以管理员打开cmd窗口
# 切换install.vbs所在目录,或拷贝install.vbs到"%Temp%"目录
# 执行安装
set RUNNER_ADDR=http://192.168.0.10:8084
cscript install.vbs /tenant:demo /pkgurl:%RUNNER_ADDR%/autoexecrunner/tagent/download/tagent_windows_x64.tar /serveraddr:%RUNNER_ADDR%
cd /opt
# 查看Shell类型
echo $0
# Shell为bash
sh tagent/bin/setup.sh --action uninstall
# Shell为ksh
sh tagent/bin/setup.ksh --action uninstall
# 删除安装目录
rm -rf tagent
以管理员权限打开cmd窗口,切换到tagent_windows_x64安装目录,执行:service-uninstall.bat,并删除安装目录,示例:
cd c:\tagent_windows_x64
service-uninstall.bat
rd /s /q c:\tagent_windows_x64
源IP | 目的IP | 目的端口 | 协议 | 备注 |
---|---|---|---|---|
neatlogic-tagent-client主机 | neatlogic-runner主机 | 8084/8888 | TCP | 8084注册端口/ 8888心跳端口 |
neatlogic-runner主机 | neatlogic-tagent-client主机 | 3939 | TCP | 命令下发端口 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。