如何关闭8080端口解决Port 8080 is already is use的问题

本帖子已过去太久远了,不再提供回复功能。Spring Tool Suite - Port 8080 required by Pivotal tc Server Developer Edition v3.0 is already in use
I get the following error when running codes in Spring Tool Suite.
..............................................................................
Port 8080 required by Pivotal tc Server Developer Edition v3.0 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).
..............................................................................
Below is a screenshot of the error.
Also, below is what I get on localhost:8080
By changing port numbers in server.xml (i.e. &Connector acceptCount="100" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${bio.https.port}" protocol="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}"/&
), I get the same error with different port numbers.3 AnswersYou have a application running on 8080, so you need to terminate whatever is running currently on 8080 port.
If you running Windows use:
netstat -a -o | find "8080"
If you running Mac OS (which i think you are) use:
sudo lsof -i :8080
Terminate that application and then launch Pivotal.
Otherwise you can change pivotal server port in the config file:
&your tc server folder location&/conf/catalina.properties
Hope that helps. AeseirYou can enter:
run configurations
Find you app name in tree struct below:
java application
(X) = Arguments
---> VM arguments
add something like this:
-Dserver.port=8888
8888 can be any port you want run http server on it.
That's all, good luck.
Jérémie Bertrandsteps to be followed
change the port number in catalina.properties file under server folder
e.g.bio.http.port=18080bio.https.port=18844
kill the java.exe running on port 8080(or any other port which poses the issue)- Use
to kill the process on specfic port
Right click on the server and then click on "clean tc server work directory"
Right click on the server and then click on "Clean"
and there u go "baaaam"
I was trying to alter the logging that takes place with Pivotal tc Server Developer edition 3.0 and I found out that the java process that starts the server never reads the logging ...
I have downloaded and installed Spring Tool Suite 3.4. I am trying to create a Spring MVC project. I am able to create the project but the project already has errors and I have not ...
Updating the Spring Tool Suite in Eclipse Luna, I get the following error since I turned off the option to download updates for Eclipse 3.7: **An error occurred while collecting it ...
I use Netbeans 8 and can deploy to my debian server, by just clicking the play button. Now I want to be able to do the same from within the spring tool suite. So what do I have to
I'm trying to import a REST project in the Spring getting started guide, however running into class def not found error in Spring Tool Suite. In Spring Tool Suite: File & New &g ...Send to Email Address
Your Email Address
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080)的解决办法
时间: 03:09:38
&&&& 阅读:6486
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&当你启动Tomcat后,在浏览器中输入http://127.0.1.1:8080/xxx.xx,你会发现你可以找打你要找的东西。但是当你在Eclipse中运行测试代码后,JUnit会一直报出这样的错误:java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080) after 5000ms: isConnected failed: ECONNREFUSED (Connection refused)at libcore.io.IoBridge.isConnected(IoBridge.java:223)at libcore.io.IoBridge.connectErrno(IoBridge.java:161)at libcore.io.IoBridge.connect(IoBridge.java:112)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)at java.net.Socket.connect(Socket.java:843)at com.android.okhttp.internal.Platform.connectSocket(Platform.java:131)at com.android.okhttp.Connection.connect(Connection.java:101)at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)此时,你的第一反应可能是某出代码有问题或者是清单文件中某个权限忘加了,其实不是这样的。原来模拟器默认把127.0.0.1和localhost当做本身了,在模拟器上可以用10.0.2.2代替127.0.0.1和localhost,另外如果是在局域网环境可以用 192.168.0.x或者192.168.1.x(根据具体配置)连接本机,这样应该就不会报错了。本文出自 “” 博客,请务必保留此出处标签:&&&&&&&&&原文:http://./8436
教程昨日排行
&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!}

我要回帖

更多关于 如何开启8080端口 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信