EasonJim
netstat -apn

其中最后一列是PID,可以通过kill Pid进行结束进程。

更精确的查找:

netstat -apn | grep 8080

查询8080端口的进程

如果要查询这个进程的详情:

ps -aux | grep xxx
ps -aux | grep pid

 

参考:

http://droidyue.com/blog/2013/09/25/list-ports-on-linux/

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2021-11-23
  • 2021-12-26
  • 2021-08-29
  • 2021-05-15
猜你喜欢
  • 2021-09-10
  • 2021-12-04
  • 2021-12-04
  • 2021-12-18
  • 2021-12-18
相关资源
相似解决方案