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