Linux query port occupation and kill the process

Query the process of the specified port number: netstat -anp |grep 端口号
kill the process according to the pid:kill -9 进程号pid

Guess you like

Origin blog.csdn.net/weixin_43650254/article/details/127977294