Tomcat-free version is registered as a system service

Source: Internet
Author: User

Environment:

Os:windows7_64bit

Jdk:jdk1.6_64bit

Tomcat:apache-tomcat-6.0.43-windows-x64

1, modify the Tomcat/bin/service.bat

Set "current_dir=%cd%"
Set java_home=d:\java\jdk1.6.0_21
Set CATALINA_HOME=F:\SOFTWARE\TOMCAT\TOMCAT1
If not "%catalina_home%" = = "goto gothome

..................................................................

"%executable%"//is//%service_name% ^
--description "Exam_web1" ^
--displayname "%displayname%" ^
--install "%executable%" ^
--logpath "%catalina_base%\logs" ^
--stdoutput Auto ^
--stderror Auto ^
--classpath "%classpath%" ^
--JVM "%jvm%" ^
--startmode JVM ^
--stopmode JVM ^
--startpath "%catalina_home%" ^
--stoppath "%catalina_home%" ^
--startclass Org.apache.catalina.startup.Bootstrap ^
--stopclass Org.apache.catalina.startup.Bootstrap ^
--startparams Start ^
--stopparams Stop ^
--startup=auto ^
--jvmoptions "-dcatalina.home=%catalina_home%;-dcatalina.base=%catalina_base%;-djava.endorsed.dirs=%catalina_ Home%\endorsed;-djava.io.tmpdir=%catalina_base%\temp;-djava.util.logging.manager= Org.apache.juli.classloaderlogmanager;-djava.util.logging.config.file=%catalina_base%\conf\logging.properties " ^
--jvmms ^
--jvmmx

2. Execute Service.bat Install service name

F:\software\tomcat\tomcat1\bin>service.bat Install Exam_web1
Installing the service ' exam_web1 ' ...
Using catalina_home: "F:\SOFTWARE\TOMCAT\TOMCAT1"
Using catalina_base: "F:\SOFTWARE\TOMCAT\TOMCAT1"
Using java_home: "D:\Java\jdk1.6.0_21"
Using jre_home: "D:\Java\jdk1.6.0_21\jre"
Using JVM: "D:\Java\jdk1.6.0_21\jre\bin\server\jvm.dll"
The service ' EXAM_WEB1 ' has been installed.

3. Open System Services to find registered services

4. Access to the Tomcat home directory

5. Start the Tomcat management side

F:\software\tomcat\tomcat1\bin>tomcat6w.exe//ms//exam_web1

Tomcat-free version is registered as a system service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.