注册tomact服务,在cmd中运行以下语句apache
语句1:cd E:\Tomact\apache-tomcat-7.0.64\bin
语句2E:\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服务。