tomcat启动时8080端口被占用问题

导入新的web工程出现如下错误:

Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).


解决办法:

1..进入DOS, ,输入  netstat   -ano|findstr  8080
这时我们就可以看到占用进程的PID

2..继续输入 taskkill  /pid  1208  /f

终止8080端口的进程

本人结果如下



PS: 出现原因未知, 我是导入第二个工程出现的, 原本可以的

PS:问题已发现, 把IDE内的浏览器关闭即可

猜你喜欢

转载自blog.csdn.net/qq_37832932/article/details/79826315