我必须设置一台服务器以满足以下要求:
jdk,
Apache-tomcat,
axis-2
我在这里得到以下错误:
Terminating connection listener org.apache.axis2.transport.http.server.DefaultConnectionListener@73d2c4aa after 10retries in 0 seconds.
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at java.net.ServerSocket.<init>(ServerSocket.java:128)
at org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:80)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
我如何解决此错误。请帮助我。
答案 0 :(得分:0)
似乎您的tomcat端口/进程已在运行。试图杀死他们并重新开始。
ps -ef | grep java
命令将为您提供与java相关的运行过程作为关键字,您将找到搜索过程的进程ID。然后 您可以按进程ID终止进程(例如: - 123456)
kill -9 123456
你可以在这里learn