linux view port Kill port

View port

method 1

lsof -i:{端口号}
Example lsof -i:444
Insert picture description here

Method 2

netstat -tunlp|grep {端口号}

Close port process

kill -9 {pid}
Example
kill -9 444

Guess you like

Origin blog.csdn.net/lows_H/article/details/112947304