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 :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端口的那个进程 如下图所示

Failed to initialize end point associated with ProtocolHandler [
2.然后在任务管理器里,查看进程。

3、把PID为4的进程关闭掉,然后一切正常!!

Failed to initialize end point associated with ProtocolHandler [

最后提醒一下,使用netstat 命令查看端口号时,查看的是Local Address 列的端口号。

此外也可以在服务中,关闭IIS解决

Failed to initialize end point associated with ProtocolHandler [

你可能感兴趣的:(错误解决,Java,Tomcat,端口占用)