windows: 成功之后在dos窗口键入 service.bat install Tomcat 输完然后按Enter键,出现如下窗口,便成功了. 进入windows服务管理,设成是自动的. #chkconfig --add myservice linux: 常常会出现 service myservice does not support chkconfig 我们一般在脚本开头加入下面两句就好了 #gedit /etc/init.d/myservice 添加下面两句到 #!/bin/bash 之…