java JBoss Standalone.conf VS Standalone.conf.bat
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13983793/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JBoss standalone.conf VS standalone.conf.bat
提问by Jensen Ching
I'm currently checking up on our JBoss AS7.1server configuration and I discovered these two previously-configured files in our jboss/standalone/bin
directory:
我目前正在检查我们的JBoss AS7.1服务器配置,我在我们的jboss/standalone/bin
目录中发现了这两个先前配置的文件:
- standalone.conf
- standalone.conf.bat
- 独立配置文件
- 独立配置文件
Now I'm interested in tweaking our JAVA_OPTS
and both the config files have a location where the parameters are set. From a quick Google search I think standalone.conf.bat
is the usual file for setting these. But I'm not sure what the standalone.conf file is doing here. Do I only need to modify standalone.conf.bat
or is there any configuration ordering I should take note of when modifying these two files?
现在我有兴趣调整我们JAVA_OPTS
的配置文件,并且两个配置文件都有一个设置参数的位置。通过快速的谷歌搜索,我认为这standalone.conf.bat
是设置这些的常用文件。但我不确定 standalone.conf 文件在这里做什么。standalone.conf.bat
在修改这两个文件时,我是否只需要修改或者是否有任何配置顺序需要注意?
Update:
更新:
The relevant JBoss documentation that answers this can be found here: https://docs.jboss.org/author/display/AS71/JVM+settings
可以在此处找到回答此问题的相关 JBoss 文档:https: //docs.jboss.org/author/display/AS71/JVM+settings
回答by Perception
If you are running this on Windows then you only really need to worry about modifying the standalone.conf.bat
file. The other file (standalone.conf
) is only used by *Nix environments.
如果您在 Windows 上运行它,那么您只需要担心修改standalone.conf.bat
文件。另一个文件 ( standalone.conf
) 仅用于 *Nix 环境。
回答by MariemJab
Yes standalone.conf is used to change java options in Unix/Linux. Check this post for more details : http://mariemjabloun.blogspot.com/2014/11/jboss-7-set-javaopts-in-jboss.html
是的,standalone.conf 用于更改 Unix/Linux 中的 java 选项。查看这篇文章了解更多详情:http: //mariemjabloun.blogspot.com/2014/11/jboss-7-set-javaopts-in-jboss.html