添加:
1. 设置JAVA_HOME
2. 以管理员权限运行cmd.exe,输入命令 service install tomcat
开始的时候没有以管理员的权限运行,总是Failed to install ······· 万恶的Win7,在tomcat的log中可以看到出错信息:
[2011-06-09 22:34:17] [info] Commons Daemon procrun (1.0.2.0) started
[2011-06-09 22:34:17] [80 service.c] [error] 拒绝访问。
[2011-06-09 22:34:17] [524 prunsrv.c] [error] Unable to open the Service Manager
[2011-06-09 22:34:17] [info] Commons Daemon procrun finished.
3. 成功(注意以后要启动或者停止tomcat服务都用以管理员权限进去,不然会提示发生系统错误 5。拒绝访问。)
删除:
sc delete tomcat (同样要管理员权限)
在Win7下将tomcat设为系统服务
猜你喜欢
转载自super86.iteye.com/blog/1074681
今日推荐
周排行