? ? ? ?lsof -i:8001
[root@iZ10uzqlb90od9Z NiuNiuServer]# lsof -i:8001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 8141 root 18u IPv6 881560 0t0 TCP *:vcom-tunnel (LISTEN)
node 8141 root 20u IPv6 889464 0t0 TCP iZ10uzqlb90od9Z:vcom-tunnel->58.246.9.246:13089 (ESTABLISHED)
? ? ? ?ps -f -p 进程号
[root@iZ10uzqlb90od9Z NiuNiuServer]# ps -f -p 8141
UID PID PPID C STIME TTY TIME CMD
root 8141 31199 0 16:00 ? 00:00:00 /www/node-v8.2.1-linux-x64/bin/node /root/MyServer/NiuNiuServer/app.js
kill 8141
如果终止不了,可以强制终止
kill -9 8041
lsof -i:8001