Port is occupied, how to solve?

Development is often released when using Tomcat project, the port is occupied, then how to do it?

1, see the port where?

netstat -ano | findstr 8080

2. Check which ports are arrested and goblins?

tasklist|findstr "12448"

3, killing the goblin

taskkill -pid 2928 -f

Guess you like

Origin www.cnblogs.com/Pzhenzhen/p/11100342.html