window搭建Tomcat服务
1、启动cmd
进入到Tomcat目录
D:\xy_ybb\XY\serviceXY\apache-tomcat-7.0.81\bin>cd D:\xy_ybb\XY\tomcat\apache-to
mcat-7.0.81\bin
D:\xy_ybb\XY\tomcat\apache-tomcat-7.0.81\bin>service install tomcatybb
Installing the service 'tomcatybb' ...
Using CATALINA_HOME: "D:\xy_ybb\XY\tomcat\apache-tomcat-7.0.81"
Using CATALINA_BASE: "D:\xy_ybb\XY\tomcat\apache-tomcat-7.0.81"
Using JAVA_HOME: "D:\xy_ybb\XY\jdk1.8\jdk"
Using JRE_HOME: "D:\xy_ybb\XY\jdk1.8\jdk\jre"
Using JVM: "D:\xy_ybb\XY\jdk1.8\jdk\jre\bin\server\jvm.dll"
The service 'tomcatybb' has been installed.
2、点击运行输入services.msc
可以看到tomcatybb服务已经注册成功。