Centos port is occupied, kill the process of being occupied

1、yum install lsof

 

 2, enter netstat -tln, view the current system all occupied ports

 

3. The port query process, enter lsof -i: 9555, remember not to forget to add a colon 

 

4, since we know the process ID, kill the current process that much easier, directly kill -9 1441 Enter

 

 

Guess you like

Origin www.cnblogs.com/xuchen0117/p/11806839.html