关于CATALINA_BASE
對CATALINA_BASE目錄的官方推薦:
-
The bin directory with the setenv.sh, setenv.bat, and tomcat-juli.jar files.
Recommended: No.
Order of lookup: CATALINA_BASE is checked first; fallback is provided to CATALINA_HOME.
-
The lib directory with further resources to be added on classpath.
Recommended: Yes, if your application depends on external libraries.
Order of lookup: CATALINA_BASE is checked first; CATALINA_HOME is loaded second.
-
The logs directory for instance-specific log files.
Recommended: Yes.
-
The webapps directory for automatically loaded web applications.
Recommended: Yes, if you want to deploy applications.
Order of lookup: CATALINA_BASE only.
-
The work directory that contains temporary working directories for the deployed web applications.
Recommended: Yes.
-
The temp directory used by the JVM for temporary files.
Recommended: Yes.
不建議修改 tomcat-juli.jar file。 然而,如果您需要自己的日志記錄實現(xiàn),你可以在特定tomcat的實例的CATALINA_BASE中替換tomcat-juli.jar。
我們也建議你復制CATALINA_HOME/conf所有的文件到CATALINA_BASE/conf的目錄中。萬一CATALINA_BASE缺失某個配置文件,該tomcat實例并不會去CATALINA_HOME中復查。因此,可能會啟動失敗。
最起碼,CATALINA_BASE必須包含:
- conf/server.xml
- conf/web.xml
關于高級配置,查看RUNNING.txt文件。
轉載于:https://www.cnblogs.com/wjsffzb/p/10113760.html
總結
以上是生活随笔為你收集整理的关于CATALINA_BASE的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TCGA样本命名详解
- 下一篇: spring bean的作用域和生命周期