一键部署agent说明(Linux版amd64),其他版本agent请先手动下载部署下
这个目前是只适用于Linux版本的agent一键部署,会默认自动下载agent-linux-amd64-v3.3.8.tar.gz(其他版本往下有说明),并自动部署启动
1、先在目标监控主机创建一个文件夹wgcloud,然后进入wgcloud文件夹
2、然后执行下面脚本,注意把http://localhost:9999替换为自己的server主机实际IP和端口
下面脚本是部署v3.3.8的agent,若要部署v3.3.7,将wget指令中的installAgent-v3.3.8.sh改为installAgent-v3.3.7.sh即可,若是v3.3.6也是一样的操作(改为installAgent-v3.3.6.sh)

[root@VM-0-14-centos /]# mkdir wgcloud
[root@VM-0-14-centos /]# cd wgcloud
[root@VM-0-14-centos wgcloud]# wget --no-check-certificate https://www.wgstart.com/download/sh/installAgent-v3.3.8.sh; bash installAgent-v3.3.8.sh http://localhost:9999
--2022-04-30 13:26:20--  https://www.wgstart.com/download/sh/installAgent-v3.3.8.sh
Resolving www.wgstart.com (www.wgstart.com)... 2606:4700:3031::ac43:a1e3, 2606:4700:3031::6815:2170, 104.21.33.112, ...
Connecting to www.wgstart.com (www.wgstart.com)|2606:4700:3031::ac43:a1e3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 530 [application/octet-stream]
Saving to: ‘installAgent-v3.3.8.sh.1’

installAgent-v3.3.8.sh.1                        100%[======================================================================================================>]     530  --.-KB/s    in 0s      

2022-04-30 13:26:21 (53.4 MB/s) - ‘installAgent-v3.3.8.sh.1’ saved [530/530]

开始下载agent-linux-amd64-v3.3.8.tar.gz------
--2022-04-30 13:26:21--  https://www.wgstart.com/download/3.3.8/agent-linux-amd64-v3.3.8.tar.gz
Resolving www.wgstart.com (www.wgstart.com)... 2606:4700:3031::ac43:a1e3, 2606:4700:3031::6815:2170, 104.21.33.112, ...
Connecting to www.wgstart.com (www.wgstart.com)|2606:4700:3031::ac43:a1e3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6206524 (5.9M) [application/octet-stream]
Saving to: ‘agent-linux-amd64-v3.3.8.tar.gz’

agent-linux-amd64-v3.3.8.tar.gz                 100%[======================================================================================================>]   5.92M  --.-KB/s    in 0.08s   

2022-04-30 13:26:21 (72.4 MB/s) - ‘agent-linux-amd64-v3.3.8.tar.gz’ saved [6206524/6206524]

下载完成------
agent-linux-amd64/
agent-linux-amd64/wgcloud-agent-release
agent-linux-amd64/README.txt
agent-linux-amd64/log/
agent-linux-amd64/start.sh
agent-linux-amd64/stop.sh
agent-linux-amd64/config/
agent-linux-amd64/config/application.properties
修改config/application.properties的配置项serverUrl------
修改完成------
部署下载已完成,开始启动agent------
./wgcloud-agent-release
1709000
已启动,杀掉进程后重启
1709000
3、部署完成,其他监控主机部署也是如上操作