Check whether the linux port in a port to be used

(1) lsof -i: port number to see if a port is occupied

 

 

 

 

 

 

(2)netstat -an|grep 80

netstat -- show network status

 

kill pid

Guess you like

Origin www.cnblogs.com/zhichun/p/11703550.html