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.
'在localhost'启动Tomcat v8.0 Sever遇到了问题。
'Starting Tomcat v8.0 Sever at localhost' has encountered a problem.
本地主机上Tomcat v8.0服务器所需的端口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服务器,选择打开
,概述窗口
将会出现。
Right click on Tomcat Server select Open
, Overview window
will appear.
打开 Ports
标签。您将获得以下内容:
Open the Ports
tab. You will get the following:
-
Tomcat adminport
HTTP / 1.1
AJP / 1.3
我更改了端口号 HTTP / 1.1
(即 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屋!