标签:.com log code mac lan kill ports port blog
1、查看全部端口
sudo lsof -i
2、查看端口监听情况
sudo lsof -i -P | grep -i "listen"
3、查看特定端口
sudo lsof -i:2425
4、查询到之后通过PID进行kill
kill PID
参考:
http://droidyue.com/blog/2013/09/25/list-ports-on-linux/
标签:.com log code mac lan kill ports port blog
原文地址:http://www.cnblogs.com/EasonJim/p/7119418.html