应用维护linux命令2

1. 根据进程的PID查询对应端口号

 

通过PID查看端口号:netstat -anop | grep pid
 
2. 根据端口反查进程
netstat -tunlp | grep 端口号
 
3.通过PID查看查看启动的应用
ps -aux | grep pid

 

posted on 2019-08-06 17:10  山鹰羽眼  阅读(116)  评论(0编辑  收藏  举报