root@vultr:~# tar -xvf agent-linux-amd64-v3.5.1.tar.gz
root@vultr:~# unzip agent-linux-amd64-v3.5.1.zip
[root@bogon ~]# firewall-cmd --zone=public --add-port=9999/tcp
success
root@vultr:~# firewall-cmd --list-port
root@vultr:~# firewall-cmd --zone=public --remove-port=9999/tcp
root@vultr:~# systemctl status firewalld
root@vultr:~# systemctl start firewalld
root@vultr:~# systemctl stop firewalld
root@vultr:~# sudo ufw allow 9999
Rule added
Rule added (v6)
root@vultr:~# sudo ufw reload
Firewall reloaded
root@vultr:~# sudo ufw status
root@vultr:~# sudo ufw deny 9999
root@vultr:~# sudo ufw reload
Firewall reloaded
root@vultr:~# sudo ufw status
root@vultr:~# sudo ufw enable
root@vultr:~# sudo ufw disable
root@vultr:~# iptables -I INPUT -p tcp --dport 9999 -j ACCEPT
root@vultr:~# iptables-save
root@vultr:~# iptables -D INPUT -p tcp --dport 9999 -j ACCEPT
root@vultr:~# iptables-save
root@vultr:~# iptables -L --line-numbers
root@vultr:~# service iptables status
root@vultr:~# service iptables restart
root@vultr:~# service iptables stop
root@vultr:~# ps -ef | grep wgcloud
root 353170 1 0 May13 ? 00:20:44 java -server -Xms256m -Xmx512m -jar wgcloud-server-release.jar
root 353176 1 0 May13 ? 00:00:31 ./wgcloud-daemon-release
root 353252 1 0 May13 ? 00:05:21 ./wgcloud-agent-release
root 485585 485572 0 19:51 pts/0 00:00:00 grep --color=auto wgcloud
root@vultr:~# kill -s 9 353170
root@vultr:~# free -m
total used free shared buff/cache available
Mem: 976 301 396 1 278 521
Swap: 2399 504 1895
root@vultr:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 445M 0 445M 0% /dev
tmpfs 98M 1.3M 97M 2% /run
/dev/vda1 24G 13G 9.2G 59% /
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 489M 0 489M 0% /sys/fs/cgroup
root@vultr:~# uptime
13:24:23 up 7 days, 3:48, 5 users, load average: 0.00, 0.00, 0.00
[root@VM-0-14-centos server]# ps -ef|grep wgcloud|grep -v grep|cut -c 9-15|xargs kill -9
[root@VM-0-14-centos server]# lsb_release -a
[root@VM-0-14-centos server]# cat /etc/issue
[root@VM-0-14-centos server]# cat /etc/redhat-release
[root@VM-0-14-centos server]# mv agent.json agent.json_bak
[root@VM-0-14-centos server]# mv agent.json /dest/
[root@VM-0-14-centos server]# cp agent.json /dest/
[root@VM-0-14-centos server]# cp agent.json /dest/agent.json_bak
[root@VM-0-14-centos server]# cp -r agent/ /dest/
[root@VM-0-14-centos server]# history | tail -20
[root@VM-0-14-centos server]# systemctl start docker
[root@VM-0-14-centos server]# docker rm 容器id
[root@VM-0-14-centos server]# docker rmi 镜像id
[root@VM-0-14-centos server]# docker ps -a
[root@VM-0-14-centos server]# docker exec -it 容器id bash
[root@VM-0-14-centos server]# docker cp /application.yml wgcloud-server:/
[root@VM-0-14-centos server]# lscpu
[root@VM-0-14-centos server]# netstat -anp |grep 9999