Linux下端口进程互查

先查看进程pid

1
ps -ef |grep 进程名

通过pid查看占用端口

1
netstat -nap |grep 进程id

通过端口查看进程

1
netstat -nap |grep 端口号
0%