linux view port number, kill the corresponding process

View all port numbers

firewall-cmd --list-ports

View the process of a certain port number

netstat -anp | grep 5200

Insert picture description here

Kill the corresponding process, as shown in the screenshot 31988 above

kill -9 31988

Guess you like

Origin blog.csdn.net/weixin_44635198/article/details/113126583