Linux查询端口占用并杀掉进程

查询指定端口号进程:netstat -anp |grep 端口号
根据pid杀掉进程:kill -9 进程号pid

猜你喜欢

转载自blog.csdn.net/weixin_43650254/article/details/127977294