查看 端口运行状态

shen-iMac:~ shensuoming$ sudo lsof -i:9000
COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
php-cgi53 65132 root    0u  IPv4 0xffffff8018734de0      0t0  TCP *:cslistener (LISTEN)
php-cgi53 65133 root    0u  IPv4 0xffffff8018734de0      0t0  TCP *:cslistener (LISTEN)
php-cgi53 65134 root    0u  IPv4 0xffffff8018734de0      0t0  TCP *:cslistener (LISTEN)
shen-iMac:~ shensuoming$ sudo kill 65132   #停止进程

发表评论