linux下进程、端口号相互查看方法
2020-09-22 本文已影响0人
潇湘demi
1.先查看进程pid
grep -ef|grep 进程名
2.通过pid查看端口号
netstat -nap |grep pid/端口号



3.用lsof查看端口使用情况
lsof -i:端口号
1.先查看进程pid
grep -ef|grep 进程名
2.通过pid查看端口号
netstat -nap |grep pid/端口号
3.用lsof查看端口使用情况
lsof -i:端口号