linux checks if the port is occupied and stops the process

lsof -i :portnumber
#portnumberPort number
You can directly list the processes/applications listening on this port

View process applications by process number


 
 
Check if the port has an active connection listening
netstat -an

 
 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326985988&siteId=291194637