一.将Tomcat添加为系统服务(Windows)
C:\Users\Administrator>cd D:\Cloud\bin
C:\Users\Administrator>D:
D:\Cloud\bin>service.bat install
Installing the service ‘Tomcat7‘ ...
Using CATALINA_HOME: "D:\Cloud"
Using CATALINA_BASE: "D:\Cloud"
Using JAVA_HOME: "C:\Program Files\Java\jdk1.7.0_21"
Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_21\jre"
Using JVM: "C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dl
l"
The service ‘Tomcat7‘ has been installed.