Installing Tomcat 7 as Service on Windows Server 2008

后端 未结 9 1353
無奈伤痛
無奈伤痛 2021-02-07 05:34

I want to install my tomcat v7.0.12 as a service on my Windows 2008 Server. On the tomcat page I found this tutorial. But there isn\'t a service.bat file in my inst

9条回答
  •  终归单人心
    2021-02-07 06:33

    1. Edit service.bat – Swap two lines so that they appear in following order: if not “%JAVA_HOME%“ == ““ goto got JdkHome if not “%JRE_HOME%“ == ““ goto got JreHome
    2. Open cmd and run command service.bat install
    3. Open Services and find Apache Tomcat 7.0 Tomcat7. Right click and Properties. Change its startup type to Automatic (with delay).
    4. Reboot machine to verify if the service started automatically

提交回复
热议问题