关于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。 然而,如果您需要自己的日志記錄實(shí)現(xiàn),你可以在特定tomcat的實(shí)例的CATALINA_BASE中替換tomcat-juli.jar。
我們也建議你復(fù)制CATALINA_HOME/conf所有的文件到CATALINA_BASE/conf的目錄中。萬一CATALINA_BASE缺失某個(gè)配置文件,該tomcat實(shí)例并不會(huì)去CATALINA_HOME中復(fù)查。因此,可能會(huì)啟動(dòng)失敗。
最起碼,CATALINA_BASE必須包含:
- conf/server.xml
- conf/web.xml
關(guān)于高級配置,查看RUNNING.txt文件。
轉(zhuǎn)載于:https://www.cnblogs.com/wjsffzb/p/10113760.html
總結(jié)
以上是生活随笔為你收集整理的关于CATALINA_BASE的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TCGA样本命名详解
- 下一篇: spring bean的作用域和生命周期