端口被占用,怎么解决?

开发中经常在使用Tomcat发布项目时,端口被占用,这时该怎么办呢?

1、查看这个端口在哪?

netstat -ano | findstr 8080

2、查看这个端口被哪个妖精抓去了?

tasklist|findstr "12448"

3、打死这个妖精

taskkill -pid 2928 -f

猜你喜欢

转载自www.cnblogs.com/Pzhenzhen/p/11100342.html
今日推荐