F:\>java -d64 -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
使用tomcat自身工具注册服务
进入到tomcat bin目录下,执行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#注册服务 service.bat install '服务名' #服务名中不能有"-","_",否则在服务中看不到 F:\apache-tomcat-7.0.70(zabbix)\bin>service.bat install tomcat7070 Installing the service 'tomcat7070' ... Using CATALINA_HOME: "F:\apache-tomcat-7.0.70(zabbix)" Using CATALINA_BASE: "F:\apache-tomcat-7.0.70(zabbix)" Using JAVA_HOME: "C:\Program Files\Java\jdk1.7.0_80" Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_80\jre" Using JVM: "C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll" The service 'tomcat7070' has been installed.
#卸载服务 service.bat remove '服务名'
F:\apache-tomcat-7.0.70(zabbix)\bin>service.bat remove tomcat7070 Removing the service 'tomcat7070' ... Using CATALINA_BASE: "F:\apache-tomcat-7.0.70(zabbix)" The service 'tomcat7070' has been removed
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Nginx\Parameters] "Application"="D:\\deploy\\nginx-1.12.1\\nginx.exe" "AppParameters"="" "AppDirectory"="D:\\deploy\\nginx-1.12.1"