Tomcat 服务器错误 - 端口 8080 已在使用中 [英] Tomcat Server Error - Port 8080 already in use
问题描述
我在 Eclipse Mars EE 中尝试执行 Servlet 程序时收到以下错误.
I received the following error while attempting to execute a Servlet program in Eclipse Mars EE.
'Starting Tomcat v8.0 Sever at localhost'遇到问题.
'Starting Tomcat v8.0 Sever at localhost' has encountered a problem.
Tomcat v8.0 Server at localhost 所需的 8080 端口已经在利用.可能已经在另一个进程或系统中运行进程可能正在使用该端口.要启动此服务器,您需要停止其他进程或更改端口号.
Port 8080 required by Tomcat v8.0 Server at localhost is already in use. There 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 7 服务器.如果我的操作系统是Windows 8,我该怎么做?
What should I do to stop the process? I'm assuming that Tomcat 7 server must be stopped. How shall I do it if my operating system is Windows 8?
错误截图:
推荐答案
我所要做的就是更改端口号
.
All I had to do was to change the port numbers
.
打开
Eclipse
转到服务器面板
在Tomcat Server上右击选择Open
,就会出现Overview window
.
Right click on Tomcat Server select Open
, Overview window
will appear.
打开端口
标签.您将获得以下信息:
Open the Ports
tab. You will get the following:
Tomcat 管理端口
HTTP/1.1
AJP/1.3
我更改了HTTP/1.1
的端口号(即更改为8081
)
I changed the port number of HTTP/1.1
(i.e. to 8081
)
您可能还需要更改 Tomcat adminport
的端口(即更改为 8006
)和 AJP/1.3
(即到 8010
).
You might have to also change the port of Tomcat adminport
(i.e. to 8006
) and of AJP/1.3
(i.e. to 8010
).
在浏览器中访问您的应用程序 http://localhost:8081/...
Access your app in the browser at http://localhost:8081/...
这篇关于Tomcat 服务器错误 - 端口 8080 已在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!