将Tomact加入windows系统服务
注册tomact服务,在cmd中运行如下语句
语句1:cd E:\Tomact\apache-tomcat-7.0.64\bin
语句2:E:\Tomact\apache-tomcat-7.0.64\bin>service.bat inatall tomact7.0
注:tomact7.0为服务名称
移除tomact服务,在cmd中运行如下语句
语句1:E:\Tomact\apache-tomcat-7.0.64\bin>service.bat remove tomact7.0
注册时tomact需要存在service.bat文件,如果tomact是安装版本的不需要注册tomact服务。