简体   繁体   English

端口 8080 已在使用中的错误

[英]Error With Port 8080 already in use

Can anyone help me to solve the following case?谁能帮我解决以下情况?

I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10.我正在尝试使用 java 生成我的第一个网站,并使用在 Ubuntu 9.10 上运行的 Eclipse Galileo。 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:当我尝试运行该程序时,总是出现以下错误:

Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use.本地主机上的 Tomcat v6.0 服务器所需的几个端口(8080、8080)已经在使用中。 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).要启动此服务器,您需要停止其他进程或更改端口号。

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.我已经阅读了很多关于更改我的 tomcat 端口的方法(从 8080 到 80),但这是不可能的。 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.我阅读了一些论坛,其中解决此问题的方法是转到包含 tomcat 服务器编号的文件,该文件是一个 XML 文件,但是当我打开该文件夹时,没有一个带有该名称的 xml 文件。

I already explored the port using sudo lsof -n -P -i :, start and shut-down tomcat but the mistake is still there.我已经使用sudo lsof -n -P -i :, 启动和关闭 tomcat 探索了端口,但错误仍然存​​在。

What can I do?我能做什么?

Thanks a lot.非常感谢。

Click on servers tab in eclipse and then double click on the server listed there.单击 eclipse 中的服务器选项卡,然后双击此处列出的服务器。 Select the port tab in the config page opened.Change the port to any other ports.Restart the server.在打开的配置页面中选择端口选项卡。将端口更改为任何其他端口。重新启动服务器。

on Mac, how I usually solve it在 Mac 上,我通常如何解决它

  1. open terminal and cd to downloaded-apache-files-folder/bin (ie to the folder where shutdown.sh file is located)打开终端并cd到downloaded-apache-files-folder/bin(即shutdown.sh文件所在的文件夹)
  2. enter "sh shutdown.sh" as a terminal command输入“sh shutdown.sh”作为终端命令
  3. restart Tomcat/Eclipse..tada!重启 Tomcat/Eclipse..tada!

Hope this helps OP or someone else reading希望这有助于 OP 或其他人阅读

In your apache conf folder, open the httpd file and look for 8080 port.在您的 apache conf 文件夹中,打开 httpd 文件并查找 8080 端口。 Change 8080 to any port you like.将 8080 更改为您喜欢的任何端口。 I believe you will find 8080 on two places.我相信你会在两个地方找到 8080。 Restart your server to see changes.重新启动服务器以查看更改。

It has been long time, but I faced the same Issue, and solved it as follow: 1. tried shutting down the application server using the shutdown.bat/.bash which might be in your application Server / bin/shutdown..已经很长时间了,但我遇到了同样的问题,并解决了以下问题: 1. 尝试使用shutdown.bat/.bash 关闭应用服务器,它可能在您的应用服务器/bin/shutdown..

  1. My Issue, was that more than 1 instance of java was running, I was changing ports, and not looking back, so it kept running other java processes, with that specific port.我的问题是,有 1 个以上的 java 实例正在运行,我正在更改端口,而不是回头看,因此它继续使用该特定端口运行其他 java 进程。 for windows users, : ALT+Shift+Esc, and end java processes that you are not using and now you should be able to re-use your port 8080对于 Windows 用户,:ALT+Shift+Esc,并结束您没有使用的 java 进程,现在您应该能够重新使用您的端口 8080

You've another instance of Tomcat already running.您已经运行了另一个 Tomcat 实例。 You can confirm this by going to http://localhost:8080 in your webbrowser and check if you get the Tomcat default home page or a Tomcat-specific 404 error page.您可以通过在 Web 浏览器中访问http://localhost:8080来确认这一点,并检查您是否获得了 Tomcat 默认主页或特定于 Tomcat 的 404 错误页面。 Both are equally valid evidence that Tomcat runs fine;两者都是 Tomcat 运行良好的同样有效的证据; if it didn't, then you would have gotten a browser specific HTTP connection timeout error message.如果没有,那么您将收到特定于浏览器的 HTTP 连接超时错误消息。

You need to shutdown it.你需要关闭它。 Go to /bin subfolder of the Tomcat installation folder and execute the shutdown.bat (Windows) or shutdown.sh (Unix) script.转至Tomcat 安装文件夹的/bin 子文件夹并执行shutdown.bat (Windows) 或shutdown.sh (Unix) 脚本。

check this answer for more information.检查此答案以获取更多信息。

如果您使用 wtp 从 eclipse 内部运行,您应该能够从“服务器”视图(窗口 -> 显示视图 -> 服务器)更改端口

The solution to this issue is:这个问题的解决方法是:

Step 1: Stop Tomcat(By service or by .bat/.sh what ever the case may be ).第 1 步:停止 Tomcat(通过服务或通过 .bat/.sh 无论如何)。

Step 2: Delete the already configured Apache Tomcat on eclipse.第二步:删除eclipse上已经配置好的Apache Tomcat。

Step 3: Now reconfigure the apache on the eclipse and start the server using UI as provided by eclipse.第 3 步:现在在 eclipse 上重新配置 apache 并使用 eclipse 提供的 UI 启动服务器。

I have the same issue and it has worked.我有同样的问题,它已经奏效。

This Worked for me > In Eclipse NEON double clicked on Server tab which redirects server overview window这对我有用> 在 Eclipse NEON 中双击服务器选项卡,重定向服务器概览窗口

Here you can change port number based on your requirement for Tomcat Admin and HTTP port.在这里您可以根据您对 Tomcat Admin 和 HTTP 端口的要求更改端口号。

And restarted the server.并重新启动了服务器。

Hope this helps you.希望这对你有帮助。

I faced a similar problem , here's the solution.我遇到了类似的问题,这是解决方案。

Step 1 : Double click on the server listed in Eclipse.第 1 步:双击 Eclipse 中列出的服务器。 Here It will display Server Configuration.这里将显示服务器配置。

Step 2 : Just change the port Number like from 8080 to 8085.第 2 步:只需将端口号从 8080 更改为 8085。

Step 3 : Save the changes.第 3 步:保存更改。

Step 4 : re-start your server.第 4 步:重新启动您的服务器。

The server will start .Hope it'll help you.服务器将启动。希望它会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 8080 端口已在 eclipse 中使用 - Port 8080 already in use in eclipse Eclipse 中的端口已在使用 8080 错误提示,但它在运行时在 web 浏览器中的端口 8080 上工作 - Port already in use 8080 error prompts in Eclipse but it does work on port 8080 in web browser when running 端口 8080 已在使用中,并且没有列出使用 8080 的进程 - port 8080 is already in use and no process using 8080 has been listed JVM_Bind 端口 8080 已在使用中 -- 但该端口上没有进程 - JVM_Bind port 8080 already in use -- but there are no processes on that port Tomcat v8.0 Server at localhost 所需的8080端口已在使用中 - Port 8080 required by Tomcat v8.0 Server at localhost is already in use “ java.net.BindException:已在使用的地址:JVM_Bind <null> :8080”,即使我使用netstat -ano检查了端口 - “java.net.BindException: Address already in use: JVM_Bind <null>:8080” even though i checked the port by using netstat -ano apache tomcat服务器始终运行程序的问题,它显示端口8080已被使用。 - Issue with apache tomcat server always running a program its showing that port 8080 is already used..? Tomcat需要的端口8005,已在使用中 - Port 8005 Required by Tomcat, already in use BindException:地址已在使用,即使有唯一端口 - BindException: Address already in use even with unique port 服务器在端口8080上的其他实例 - Other instance of server on port 8080
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM