在Win7下将tomcat设为系统服务
添加:1. 设置JAVA_HOME
2. 以管理员权限运行cmd.exe,输入命令 service install tomcat
开始的时候没有以管理员的权限运行,总是Failed to install ······· 万恶的Win7,在tomcat的log中可以看到出错信息:
Commons Daemon procrun (1.0.2.0) started
拒绝访问。
Unable to open the Service Manager
Commons Daemon procrun finished.
3. 成功(注意以后要启动或者停止tomcat服务都用以管理员权限进去,不然会提示发生系统错误 5。拒绝访问。)
删除:
sc delete tomcat (同样要管理员权限)
页:
[1]