Tomcat v7.0 服务器设置端口 8086 和 8009
我是java编程新手。我使用struts 编写了一个小型Web 程序。我已经安装了 apche tomcat 7 服务器。我将此服务器配置到我的项目中。当我运行此程序时,Tomcat 服务器显示错误。错误是
在本地主机上启动 tomcat v7.0 服务器遇到问题
本地主机上的 Tomcat v7.0 服务器所需的几个端口(8086、8009)已在使用中。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号
I am new in java programming. I have write a small web program using struts. I ve already install apche tomcat 7 server. I configure this server to my project. Tomcat server error showing When I run this program. The error is
Starting tomcat v7.0 server at localhost encountered a problem
Several ports (8086, 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 using the port. To start this server you will need to stop the other process or change the port number(s)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您需要找出哪个进程正在该端口上运行,如果不需要,您可以杀死它们
,或者您可以更改 tomcat 的配置来启动另一个端口上的 Tomcat 实例
为此,您需要编辑位于
TOMCAT_DIR/conf/
的server.xml
文件You need to find out which process are running over that port and if it is not needed you can kill them
or you can change your tomcat's configuration to start the Tomcat instance on another port
for this you need to edit your
server.xml
file located atTOMCAT_DIR/conf/
如何解决这个问题 Tomcat v7.0 服务器所需的 8080 端口已在使用中。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。
how to solve this Port 8080 required by Tomcat v7.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 this server you will need to stop the other process or change the port number(s).
您可以更改您的tomcat端口
You can change your tomcat ports
您可以在
{TOMCAT_HOME}\conf\server.xml
中更改端口详细信息you can change the port details in
{TOMCAT_HOME}\conf\server.xml
以下。
“服务器”视图。
将“可用:”框更改为“已配置:”
below.
“Servers” view.
"Available:" box to "Configured:"