tomcat部署好以后,运行tomcat8.exe,闪一下就关闭了;百度查询了一下,说需要先安装tomcat服务,才允许tomcat8.exe允许,启动tomcat服务。
通过cmd命令进入tomcat的bin目录,运行service.bat install,安装tomcat服务,安装完成以后,可以通过服务查看是否安装成功,接下来使用管理员身份运行tomcat8.exe,运行时报错,导致tomcat无法启动,错误如下图:
07-Jul-2018 11:26:48.191 严重 [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl