1. nohup execute >/dev/null 2>&1 & 提交了一个后台jobs
2. 然后查看一下 哪个进程正在用
3. yum 安装lsof
yum install lsof -y
4. 查看进程信息
lsof -i:
5. 效果为:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
frps root 3u IPv6 0t0 TCP *:afs3-fileserver (LISTEN)
frps root 7u IPv6 0t0 TCP 45.62.117.86.16clouds.com:afs3-fileserver->58.56.96.30: (ESTABLISHED)
frps root 12u IPv6 0t0 TCP 45.62.117.86.16clouds.com:afs3-fileserver->58.56.96.30: (ESTABLISHED)
[root@host ~]#