將Tomact加入windows系統服務

註冊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服務。
相關文章
相關標籤/搜索