1、安裝jdk --> D:\Program Files\Java\jdk1.5.0
2,、配置JAVA_HOME --> D:\Program Files\Java\jdk1.5.0
3,、解壓tomcat5.5 --> D:\Program Files\Apache Software Foundation\Tomcat 5.5
4、打開cmd,,進(jìn)入到tomcat5.5bin目錄 --> D:\Program Files\Apache Software Foundation\Tomcat 5.5\bin>
5,、執(zhí)行命令:service install tomcat
執(zhí)行結(jié)果為:
Installing the service 'tomcat' ...
Using CATALINA_HOME: D:\Program Files\Apache Software Foundation\Tomcat 5.5
Using CATALINA_BASE: D:\Program Files\Apache Software Foundation\Tomcat 5.5
Using JAVA_HOME: D:\Program Files\Java\jdk1.5.0
Using JVM: D:\Program Files\Java\jdk1.5.0\jre\bin\server\jvm.dll
The service 'tomcat' has been installed.
此時(shí)產(chǎn)生名為:Apache Tomcat tomcat 的服務(wù)
6,、卸載命令:service remove tomcat
執(zhí)行結(jié)果為:
The service 'tomcat' has been removed