ubuntu查看进程占用端口命令

netstat -tlnp|grep 80

http://fly5.com.cn/t/t-chicken/linux-%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B%E5%8D%A0%E7%94%A8%E7%AB%AF%E5%8F%A3%E5%91%BD%E4%BB%A4.html

kill -9 $(netstat -tlnp|grep 80|awk '{print $7}'|awk -F '/' '{print $1}')


原文地址:https://www.cnblogs.com/lexus/p/1785549.html