今天将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
3.启动服务net start Tomcat8