Installing Tomcat 7 as Service on Windows Server 2008

后端 未结 9 1349
無奈伤痛
無奈伤痛 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

    To Start Tomcat7 Service :

    • Open cmd, go to bin directory within "Apache Tomcat 7" folder. You will see some this like C:\..\bin>

    • Enter above command to start the service: C:\..\bin>service.bat install. The service will get started now.

    • Enter above command to start tomcat7w monitory service. If you have issue with starting the tomcat7 service then remove the service with command : C:\..\bin>tomcat7 //DS//Tomcat7

    • Now the service will no longer exist. Try the install command again, now the service will get installed and started: C:\..\bin>tomcat7w \\MS\tomcat7w

    • You will see the tomcat 7 icon in the system tray. Now, the tomcat7 service and tomcat7w will start automatically when the windows get start.

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-02-07 06:33

    its done through service.bat file in apache tomcat7

    visit this blog .. install tomcat7 on windows

    0 讨论(0)
提交回复
热议问题