Add apache tomcat 7 zip decompressed windows Service

Source: Internet
Author: User

Apache-tomcat-7.0.47-windows-x64.zipor apache-tomcat-7.0.47-windows-x86.zip decompressed windows service added

Unzip to decompress the script that does not install tomcat as service. bat for windows Services.

If you want to run the program without installing jdk when using tomcat, You need to define the jre directory in the environment variable JAVA_HOME. The simpler method is to run the program on the service. set JRE_HOME in bat, and JSSE_HOME points to the jre directory. the environment variable set by bat is jre used to search for tomcat during service running. Set JRE_HOME, JAVA_HOME, and JSSE_HOME in setclasspath. bat to start in the command line. Disable jre for tomcat search.

Example:

1.apache-tomcat-7.0.47-windows-x86.zip jre7 (after jdk7 is installed, copy the installed jre directory to the root directory of unzip tomcat) tomcat7 unzip the Directory and copy the jre to the root directory.

2. Set the environment variable at the beginning of the setclasspath. bat file

Set JAVA_HOME = "% CATALINA_HOME % \ jre7"
Set JSSE_HOME = "% CATALINA_HOME % \ jre7"

Service. bat file: set environment variables under set "CATALINA_HOME = % cd %" on gotHome


Set "CATALINA_HOME = % cd %"
Set "JSSE_HOME = % CATALINA_HOME % \ jre7"

: GotHome

3. Start cmd to run the command startup. bat in the bin directory of tomcat. For example, the jre used for tomcat running is displayed.

4. Running shutdown. bat in cmd also displays the jre used for tomcat running.

5. Run service. bat install in cmd to install tomcat as a windows service.

6. remove the installed tomcat service and run cmd to run the Command service. bat remove.


FAQ:

Unzip to decompress the script that does not install tomcat as service. bat for windows Services

Zookeeper

Related Article

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.