一.将Tomcat添加为系统服务(Windows)
C:UsersAdministrator>cd D:Cloudin
C:UsersAdministrator>D:
D:Cloudin>service.bat install
Installing the service 'Tomcat7' ...
Using CATALINA_HOME: "D:Cloud"
Using CATALINA_BASE: "D:Cloud"
Using JAVA_HOME: "C:Program FilesJavajdk1.7.0_21"
Using JRE_HOME: "C:Program FilesJavajdk1.7.0_21jre"
Using JVM: "C:Program FilesJavajdk1.7.0_21jreinserverjvm.dl
l"
The service 'Tomcat7' has been installed.