Linux查看端口占用进程

时间:2021-03-02 12:19:11   收藏:0   阅读:0

查看程序对应的进程号:

ps -ef | grep 进程名字

查看端口号所占用的进程:

netstat -nltp | grep 端口 

或者

netstat -anp | grep 端口 

杀死进程

kill pid
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!