Tomct启动报错Port 8080 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start

问题描述

 

 这种情况是由于端口被占用,需要找到是哪个程序占用了端口。

解决方案

1.打开cmd命令(windows+R-->输入cmd)

2.输入如下命令

netstat -ano|findstr 8080和netstat -ano|findstr 8005可以查看是哪个任务使用了这两个端口

比如

 

 可以发现是PID为17224的进程占用了端口

3.在任务管理器中将进程结束

4.重新启动Tomcat即可

 

posted @ 2020-08-28 21:41  正在努力的girl  阅读(848)  评论(0)    收藏  举报