端口8080已使用中的错误 [英] Error With Port 8080 already in use
问题描述
有人可以帮助我解决以下情况吗?
Can anyone help me to solve the following case?
我正在尝试使用Java生成我的第一个网站,并与在Ubuntu 9.10上运行的Eclipse Galileo一起工作.自从我生成第一行代码以来,我还没有看到网络.每当我尝试运行程序时,都会出现以下错误:
I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:
本地主机上的Tomcat v6.0 Server所需的几个端口(8080、8080)已在使用中.服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口.要启动此服务器,您将需要停止其他进程或更改端口号.
Several ports (8080, 8080) required by Tomcat v6.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).
我已经阅读了很多有关更改雄猫端口(从8080更改为80)的方法,但是这是不可能的.我读过一些论坛,其中解决此问题的方法是去查找包含tomcat服务器号的文件,该文件是XML文件,但是当我打开文件夹时,没有名称为xml的文件.
I have read a lot about the way to change the ports for my tomcat (pass from the 8080 to 80) but it has been impossible. I read some forums where the way to solve this problem is going to the file that contents the server number for tomcat, which is a XML file, but when I open the folder there is not a xml file with the name.
我已经使用sudo lsof -n -P -i
探索端口:,启动和关闭tomcat,但错误仍然存在.
I already explored the port using sudo lsof -n -P -i
:, start and shut-down tomcat but the mistake is still there.
我该怎么办?
非常感谢.
推荐答案
在您的apache conf文件夹中,打开httpd文件并查找8080端口.将8080更改为您喜欢的任何端口.我相信您会在两个地方找到8080.重新启动服务器以查看更改.
In your apache conf folder, open the httpd file and look for 8080 port. Change 8080 to any port you like. I believe you will find 8080 on two places. Restart your server to see changes.
这篇关于端口8080已使用中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!