当我尝试重新启动tomcat时,得到了以下信息:
sudo /etc/init.d/tomcat7 restart
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
但是,tomcat运行正常。但我不知道这些是什么。
最佳答案
让我们一一分解
Using CATALINA_BASE: /usr/share/tomcat7 --> Your tomcat base dir
Using CATALINA_HOME: /usr/share/tomcat7 --> Your tomcat home dir
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp --> tomcat's temp dir path
Using JRE_HOME: /usr --> Path to your JRE
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
^--> The jars that are on the class-path when this vm was launched
将这些日志显示2次的原因是由于
restart
命令。第一个日志在调用shutdown
时发出,之后立即调用startup
,因此是第二层日志。这是Tomcat的一种完全正常的行为
关于tomcat - 重新启动Tomcat7时出现奇怪的响应,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23800672/