报错Connection refused: connect
程序员文章站
2022-07-07 14:42:14
...
内容如下:
二月 14, 2019 2:16:48 下午 org.apache.catalina.startup.Catalina stopServer
严重: Could not contact [localhost:[8005]]. Tomcat may not be running.
二月 14, 2019 2:16:48 下午 org.apache.catalina.startup.Catalina stopServer
严重: Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:503)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:406)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:498)
多次启动tomcat,导致8080端口号被占用了,找到那个端口号,然后kill掉对应的进程就行啦。
利用命令提示符:
输入“netstat -aon|findstr 8080”找到占用8080端口的进程号:
输入“tasklist|findstr "3412" ”:
查看进程号为“3412”的进程:
输入“taskkill /f /t /im QQ.exe”:
结束这个进程:
上一篇: [redis 源码走读] sentinel 哨兵 - 主客观下线
下一篇: 启动zookeeper报错java.net.ConnectException: Connection refused
推荐阅读
-
putty network error:Connection refused 乱码解决方法
-
Linux 出现telnet: 127.0.0.1: Connection refused错误解决办法
-
mysql_connect(): Connection using old (pre-4.1.1) authentication protocol refuse
-
PHP执行Curl时报错提示CURL ERROR: Recv failure: Connection reset by peer的解决方法
-
ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决
-
AndroidStudio更新时报错:Connection Error,Temp directory inside installation
-
Nginx中报错:Permission denied与Connection refused的解决
-
Android studio Connection timed out: connect
-
android 请求接口报错 org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.90:9090 refused
-
mysql_connect(): Connection using old (pre-4.1.1) authentication protocol refused