六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 34|回复: 0

在Win7下将tomcat设为系统服务

[复制链接]

升级  50%

5

主题

5

主题

5

主题

童生

Rank: 1

积分
25
 楼主| 发表于 2013-1-26 13:33:28 | 显示全部楼层 |阅读模式
添加:

    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 (同样要管理员权限)
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表