启动Tomcat服务器报错: Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are alr

news/2024/12/1 8:39:57/

启动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的端口号。

方法1:杀掉占用端口的软件
打开任务管理器,找到java虚拟机相关的进程javaw.exe,将它结束掉.
这里写图片描述

方法2:修改tomcat默认端口号
修改Tomcat的配置文件
找到tomcat安装路径,C:\XX\apache-tomcat-8.5.9\conf文件夹下的server.xml或者打开eclipse工作空间下的Servers/server.xml文件修改端口号。
这里写图片描述
例如将

 < Server port="8005" shutdown="SHUTDOWN" >  改为< Server port="8015" shutdown="SHUTDOWN" >
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
redirectPort="8443"/>
改为
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8088" protocol="HTTP/1.1"
redirectPort="8443"/>

总之是将配置文件中端口号为8005,8080,8009的端口改为一个没有被占用的端口,重启服务器即可。


http://www.ppmy.cn/news/416188.html

相关文章

8088微处理器引脚

最小模式下 1、AD0—AD7&#xff1a;低8位地址和低8位数据信号分时复用。在传送地址信号时为单向&#xff0c;传送数据信号时为双向。 2、A8—A15 &#xff1a;8位地址信号 3、A16–A19&#xff1a;高4位地址信号&#xff0c;与状态信号分时复用。 4、SS0与IO/M、DT/R决定了…

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.

Windows下Tomcat报端口被占用问题 平时都好好的tomcat&#xff0c;今天突然报出来Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be u…

Windows 服务器怎么开启8081端口

在 Windows 服务器上开启8081端口的方法如下: 打开命令提示符&#xff0c;输入 "netsh" 并回车。输入 "advfirewall firewall add rule name"Open Port 8081" dirin actionallow protocolTCP localport8081" 并回车。重启防火墙服务&#xff0c;…

OCR中相关概念解析

1&#xff0c;连通体 OCR指的是光学字符识别技术&#xff0c;用于将扫描或拍摄的文本图像转换为可编辑的文本格式。在OCR处理过程中&#xff0c;一个很重要的步骤是将图像中的字符分割出来&#xff0c;以便进行识别。在字符分割过程中&#xff0c;连通体是一个常用的概念。 连通…

Tomcat运行错误,端口占用(8005, 8080, 8009)

Tomcat错误信息如下&#xff1a; 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 n…

tomcat报错,提示Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already

eclipse运行web项目报错提示&#xff1a; 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 yo…

Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use.

eclipse启动Tomcat报错&#xff0c;显示8005, 8080, 8009端口被占用 问题描述 eclipse启动Tomcat报错&#xff1a; Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another proce…

npm启动vue报错 Error: listen EACCES: permission denied 0.0.0.0:8085

报错日志&#xff1a; D:\****\***>npm run dev > vue-ytd-cli-project0.0.1 dev *** > node --max_old_space_size4096 build/dev-server.js 。。。。。。 > starting dev server... events.js:292 throw er; // Unhandled error event ^ Error: list…