简体   繁体   English

无法在Windows中使用bat文件启动tomcat

[英]Can't start tomcat with bat file in windows

I have unzipped apache-tomcat-8.0.28 successfuly.Then I tried to start tomcat using cmd with startup.bat .But it returns below and tomcat isn't started. 我已经成功解压缩了apache-tomcat-8.0.28我尝试使用带有startup.bat cmd启动tomcat,但是它返回到下面并且tomcat没有启动。

Using CATALINA_BASE:   "D:\apache-tomcat-8.0.28"
Using CATALINA_HOME:   "D:\apache-tomcat-8.0.28"
Using CATALINA_TMPDIR: "D:\apache-tomcat-8.0.28\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_66"
Using CLASSPATH:       "D:\apache-tomcat-8.0.28\bin\bootstrap.jar;D:\apache-tomcat-8.0.28\bin\tomcat-juli.jar"

What should I do ? 我该怎么办 ?

startup.bat typically opens a new command line. startup.bat通常会打开一个新命令行。 If the new command line closes immediately, it's hard to recognize the error message that's displayed for fractions of a second. 如果新命令行立即关闭,则很难识别一秒钟之内显示的错误消息。

You can check error messages in tomcat's log/catalina.out or see them interactively by using catalina.bat run - this will not open a new window and not go to the background - instead start tomcat in the current command line window, displaying all the log information. 您可以在tomcat的log / catalina.out中检查错误消息,也可以通过使用catalina.bat run交互式查看错误消息-这不会打开新窗口且不会进入后台-而是在当前命令行窗口中启动tomcat,显示所有日志信息。 It should be easy to spot the problem this way. 这样应该很容易发现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM