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,进入到tomcat5.5bin目录 --> D:\Program Files\Apache Software Foundation\Tomcat 5.5\bin>
5、执行命令:service install tomcat
执行结果为:
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.
此时产生名为:Apache Tomcat tomcat 的服务
6、卸载命令:service remove tomcat
执行结果为:
The service 'tomcat' has been removed