xxxxxxxxxx
[root@VM-0-14-centos /]# cd wgcloud
[root@VM-0-14-centos wgcloud]# curl -k https://www.wgstart.com/download/sh/regAgentService.sh|bash -s [agent完整目录]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 536 100 536 0 0 3392 0 --:--:-- --:--:-- --:--:-- 3392
Created symlink /etc/systemd/system/multi-user.target.wants/wgcloudAgent.service → /etc/systemd/system/wgcloudAgent.service.
agent已添加到开机启动------
● wgcloudAgent.service - auto Start Wgcloud Agent
Loaded: loaded (/etc/systemd/system/wgcloudAgent.service; enabled; vendor preset: enabled)
Active: inactive (dead)
xxxxxxxxxx
root@vultr:~# systemctl status wgcloudAgent
● wgcloudAgent.service - auto Start Wgcloud Agent
Loaded: loaded (/etc/systemd/system/wgcloudAgent.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-04-27 07:51:56 UTC; 7min ago
Process: 694 ExecStart=/usr/bin/bash /agent-linux-amd64-v3.4.6//start.sh (code=exited, status=0/SUCCESS)
Main PID: 744 (wgcloud-agent-r)
Tasks: 4 (limit: 1063)
Memory: 14.9M
CGroup: /system.slice/wgcloudAgent.service
└─744 ./wgcloud-agent-release
Apr 27 07:51:55 vultr bash[694]: /agent-linux-amd64-v3.4.6/wgcloud-agent-release
Apr 27 07:51:55 vultr systemd[1]: Starting auto Start Wgcloud Agent...
Apr 27 07:51:56 vultr bash[694]: wgcloud-agent程序开始启动
Apr 27 07:51:56 vultr systemd[1]: Started auto Start Wgcloud Agent
xxxxxxxxxx
[root@VM-0-14-centos /]# cd wgcloud
[root@VM-0-14-centos wgcloud]# curl -k http://[server主机IP:9999]/resources/regAgentService.sh|bash -s [agent完整目录]