netstat -lnp|grep 80
查看80端口被谁占用了。
结果:

查询到是哪个程序被占用后,然后再找到对应的pid,
ps -ef |grep nginx
找到pid
然后kill pid
netstat -lnp|grep 80
查看80端口被谁占用了。
结果:
查询到是哪个程序被占用后,然后再找到对应的pid,
ps -ef |grep nginx
找到pid
然后kill pid
本文标题:linux查询端口号被占用
本文链接:https://www.haomeiwen.com/subject/fnlpixtx.html
网友评论