View the processes occupying the specified port

Find the corresponding process according to the port number, as follows:

1 、 netstat -alp | grep 2181



 

2. Obtain the specific process according to the obtained process number 3567: ps -aux | grep 3567


 
 3. We get that port 2181 is occupied by zookeeper

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326366640&siteId=291194637
Recommended