Several ports (8005, 8080, 8009)被占用

时间:2023-03-09 03:25:48
Several ports (8005, 8080, 8009)被占用

启动Tomcat服务器报错:

Several ports (8005, 8080, 8009) required by Tomcat v5.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).

原因:端口8005, 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用。或是其他软件占用了tomcat的端口号。

这里只讲在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用的情况解决。

打开命令行,输入netstat -ano

Several ports (8005, 8080, 8009)被占用

找到本地地址为8080的PID,此处为9020

打开任务管理器,详细信息,找到PID同为9020的,杀死。

另一种方法:
Several ports (8005, 8080, 8009)被占用