[英]Tomcat: configure VM properties
I need to configure some VM properties for our web application. 我需要为我们的Web应用程序配置一些VM属性。 What is the right place to do this on a Tomcat 7.0 server? 在Tomcat 7.0服务器上执行此操作的正确位置是什么?
Edit or create setenv.sh
(located in /bin
directory) to set your custom settings, catalina.sh
will pick it up automatically.(don't edit catalina.sh!) 编辑或创建setenv.sh
(位于/bin
目录中)以设置自定义设置, catalina.sh
会自动将其选中。(请勿编辑catalina.sh!)
For Tomcat specific tuning use CATALINA_OPTS
instead of JAVA_OPTS
对于特定于Tomcat的调优,请使用CATALINA_OPTS
而不是JAVA_OPTS
UPDATE: Forgot to ask you the platform you are using, if it's Windows
use setenv.bat
instead of setenv.sh
更新:忘记询问您使用的平台,如果是Windows
使用setenv.bat
而不是setenv.sh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.