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]