出现unable to open the service tomcat怎么办

笔记本jdk,tomcat的环境变量检查了好几遍,没有错误,可是打开tomcat8w.exe的时候还是出现了unable to open service tomcat怎么办

工具/原料

  • JDK(jdk1.8.0_05)最新的都可以的
  • tomcat(apache-tomcat-8.0.12)
  • win7 (64操作系统)

方法/步骤1

  1. 1

    下载jdk,并且检查环境变量,并且测试成功(这个网上有许多的)。

    出现unable to open the service tomcat怎么办
    END

方法/步骤2

  1. 1

    下载tomcat,解压到你想要的目录下

    出现unable to open the service tomcat怎么办
  2. 2

    配置tomcat环境变量:

        1、新建CATALINA_HOME:变量名CATALINA_HOME,变量值为tomcat目录(E:\apache-tomcat-8.0.12)

       2、在classpath里面加入%CATALINA_HOME%\common\lib\servlet.jar并用分号隔开

    出现unable to open the service tomcat怎么办
  3. 3

    打开tomcat service服务:

       1、打开命令提示窗口(win键+R输入cmd即可)

       2、到tomcat目录下,输入service.bat就好了

    出现unable to open the service tomcat怎么办
    出现unable to open the service tomcat怎么办
  4. 4

    打开tomcat8w.exe,并且按start,检测是在地址栏输入http:\\localhost:8080,tomcat就启动成功了

    出现unable to open the service tomcat怎么办
    出现unable to open the service tomcat怎么办
    END

注意事项

  • 配置classpath的时候,可能有许多字母,需要有耐心的拖到最到再输入;加%CATALINA_HOME%\common\lib\servlet.jar
  • 在tomcat bin目录下可以先双击shutdown.bat,再双击startup.bat来检查tomcat是否配置成功
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值