win10 解决Failed installing 'Tomcat8' service

今天将tomcat安装成服务执行service.bat install时遇到

Installing the service 'Tomcat8' ...
Using CATALINA_HOME:    "D:\software\apache-tomcat-8.5.24"
Using CATALINA_BASE:    "D:\software\apache-tomcat-8.5.24"
Using JAVA_HOME:        "C:\Program Files\Java\jdk1.8.0_131"
Using JRE_HOME:         "C:\Program Files\Java\jdk1.8.0_131\jre"
Using JVM:              "C:\Program Files\Java\jdk1.8.0_131\jre\bin\server\jvm.dll"
Failed installing 'Tomcat8' service

解决办法:

  1.在contana的搜索框张收入cmd,然后右键单击,并选择以管理员身份运行

  2.进入Tomcat所在目录,运行命令 service.bat install

win10 解决Failed installing 'Tomcat8' service

  3.启动服务net start Tomcat8

win10 解决Failed installing 'Tomcat8' service

 

上一篇:千锋学习之day01


下一篇:最终我还是退订了131个公众号,只留下10个,每一个都经得住考验