![](/img/trans.png)
[英]How to use redis or memcached to configure tomcat6 or 7 sharing session?
[英]How to configure tomcat6 to start from another directory
我有个问题。 我不知道如何配置tomcat6 / webapps / ROOT / META-INF / context.xml从目录/home/myname/project/test/web/target/firsttest-1.1.0.SNAPSHOT.war帮助启动我的应用程序我,拜托! 我无法使用Google搜索此问题
您可以使用以下环境变量配置Tomcat在何处查找配置信息:
CATALINA_HOME是tomcat二进制文件所在的位置。
CATALINA_BASE是实例特定的配置文件所在的位置。 这应该看起来像是原始Tomcat基本目录的副本,其中包含conf,log,temp,webapps和work文件夹。
因此,通过设置CATALINA_BASE环境变量,可以将Tomcat配置为以多种不同的配置运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.