window+linux view the specified port and kill the process

View all port processes in windows
netstat -ano   

View specified port occupation
netstat -aon|findstr "port"

kill process
taskkill -F /pid 3080

 

LINUX

View all processes

netstat –apn

 

View program progress:

ps -aux | grep tomcat

 

View the specified port occupancy under linux

netstat –apn | grep 8080

 

kill process

kill -9 [PID]

Guess you like

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