windows 安装tomcat服务
D:\usr\tomcat\bin>service.bat -help
Unknown parameter ""
Usage: service.bat install/remove [service_name] [/user username]
D:\usr\tomcat\bin>service.bat install tomcat7
Installing the service 'tomcat7' ...
Using CATALINA_HOME: "D:\usr\tomcat"
Using CATALINA_BASE: "D:\usr\tomcat"
Using JAVA_HOME: "D:\usr\jdk"
Using JRE_HOME: "D:\usr\jdk\jre"
Using JVM: "D:\usr\jdk\jre\bin\server\jvm.dll"
The service 'tomcat7' has been installed.
D:\usr\tomcat\bin>