[问题] 重灌后的WINDOW 无法安装tomcat

楼主: akk98 (akk)   2019-09-29 22:46:46
※状况概述:
重灌后我的TOMCAT无法启动 重新下载也没用
也用过系统安装版 已经启动 但是就是无法登入8080
不知道有没有人能远端帮忙 感激不尽
※程式码:
SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed to initialize component [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Protocol handler
initialization failed
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:533)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1059)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:584)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:607)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:304)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:461)
at java.base/sun.nio.ch.Net.bind(Net.java:453)
at
java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at
java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
at
org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:230)
at
org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:213)
at
org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1124)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1137)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:574)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
... 13 more
※错误讯息:
※补充说明:
进入localhost 就是不成功的样子
楼主: akk98 (akk)   2019-09-29 22:47:00
我在想会不会是java11的问题 之前都是java8再用 其他没用看起来是不是PORT被占用呢?
作者: ssccg (23)   2019-09-29 23:08:00
Address already in use,就是port被占用
楼主: akk98 (akk)   2019-09-29 23:10:00
那要怎么办 好几招都试过了 都没用= =
作者: kogrs (kogrs)   2019-09-30 01:36:00
叫出资源监视器=>网络=>接听连接埠,找出哪个process 占掉你的 tomcat port
楼主: akk98 (akk)   2019-09-30 01:57:00
有好心大大看一下怎用吗?https://i.imgur.com/mzV8F67.png
作者: ssccg (23)   2019-09-30 16:34:00
如果你懒得找也没有一定要用这port,你可以改port顺便了解一下tomcat设定,在tomcat的conf/server.xml里面有shutdown、http connnector、ajp connector 3个port改到没冲突试试看
楼主: akk98 (akk)   2019-09-30 17:11:00
之前改来改去的结果就是整个乱掉 所以不太敢乱改ssccg大大 有没有比较简单粗暴方法

Links booklink

Contact Us: admin [ a t ] ucptt.com