启动Tomcat提示:指定的服务未安装
启动Tomcat提示:指定的服务未安装
操作方法
- 01
打开命令行提示符窗口 => 进入Tomcat安装目录==> 进入bin目录下==> 输入:service.bat install 即可
- 02
注意:在执行上面的步骤时可能会出现:tomcat.exe未找到、The CATALINA_HOME environment variable is not defined correctly 这就说明你的tomcat环境没配置好!下面是我的环境配置,可能冗余了,不过确实是成功的。
- 03
我的java环境变量: JAVA_HOME: C:\Program Files\Java\jdk1.6.0_10 CLASSPATH: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet-api.jar Path: C:\Program Files\NVIDIA Corporation\PhysX\Common;.;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_10\bin;F:\eclipse1\android-sdk-windows\tools;F:\eclipse1\android-sdk-windows\platform-tools;E:\MATLAB7\bin\win32;D:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;C:\jython2.5.4rc1
- 04
我的tomcat环境变量: CATALINA_BASE: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.37 CATALINA_HOME: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.37 CLASSPATH: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet-api.jar TOMCAT_HOME: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.37;D:\j2ee1\apache-tomcat-7.0.37 Path: C:\Program Files\NVIDIA Corporation\PhysX\Common;.;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_10\bin;F:\eclipse1\android-sdk-windows\tools;F:\eclipse1\android-sdk-windows\platform-tools;E:\MATLAB7\bin\win32;D:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;C:\jython2.5.4rc1