---- Linux operating system [see] an occupation occupied port

1. Use lsof 
lsof -i: port number to see if a port is occupied 

lsof is not installed error: -bash: lsof: command not found

lsof install: yum install lsof


Write pictures described here
2. Use the netstat 
use netstat -anp | grep 80 
Write pictures described here

 

Guess you like

Origin blog.csdn.net/ningjiebing/article/details/89410923