1. 程式人生 > >Failed to initialize end point associated with ProtocolHandler ["http-bio-80"] java.net.BindExce問題解決

Failed to initialize end point associated with ProtocolHandler ["http-bio-80"] java.net.BindExce問題解決

今天啟動Tomca的時候報錯如下:

十一月 24, 2018 11:46:37 上午 org.apache.coyote.AbstractProtocol init
資訊: Initializing ProtocolHandler ["http-bio-80"]
十一月 24, 2018 11:46:37 上午 org.apache.coyote.AbstractProtocol init
嚴重: Failed to initialize end point associated with ProtocolHandler ["http-bio-80"]
java.net.BindException: Address already in use: JVM_Bind <null>:80
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at 

解決方法如下:

1.cmd命令模式下輸入netstat -ano,然後找到佔用80埠的那個程序 如下圖所示


2.然後在工作管理員裡,檢視程序。

3、把PID為4的程序關閉掉,然後一切正常!!

最後提醒一下,使用netstat 命令檢視埠號時,檢視的是Local Address 列的埠號。

此外也可以在服務中,關閉IIS解決