Tomcat 设为Windows服务

安装:

service.bat install #安装为默认实例名

service.bat remove #卸载默认服务实例

service.bat install instance1 #安装为实例名为instance1的服务

service.bat remove instance1 #卸载实例名为instance1的服务

更改参数:

tomcat8w.exe #更改默认实例的运行参数

tomcat8w.exe //ES/instance1 #更改实例instance1的运行参数