Linux查看端口占用的进程号,通过进程号查看path

beyondbn博客迁移

Linux

查看端口占用的进程号: netstat -lnp|grep 8122        

通过进程号查看产生该进程的文件path: ps -ef|grep 13261

 或者:  

 ps -ef|grep tomcat

kill -9 端口号



 

猜你喜欢

转载自bugyun.iteye.com/blog/2341472