gpt4 book ai didi

java - 这是 JAVA_OPT JVM 标志吗?

转载 作者:行者123 更新时间:2023-12-01 12:40:34 26 4
gpt4 key购买 nike

我正在阅读教程 here关于如何让 jboss 管理控制台工作 - 它说如下;

The Console, as well as the JMX and JBossWS consoles, are deployed "on-demand" by default. This means that the consoles are deployed when the user requests access. This deferred deployment strategy minimizes the overall server boot time. This feature can be disabled, however, by passing the following property to the server start command:

/run.sh -Djboss.as.deployment.ondemand=false Once the server is started, simply point your browser of choice to:

http://localhost:8080/admin-console JBoss AS binds its services to localhost (127.0.0.1) by default, instead of binding to all available interfaces (0.0.0.0). This was primarily done for security reasons because of concerns of users going to production without having secured their servers properly. To enable remote access by binding JBoss services to a particular interface, simply start the JBoss AS server with the -b option. To bind to all available interfaces and re-enable the legacy behaviour use -b 0.0.0.0. If the server is started with the -b option, you will have to alter the URL accordingly.

这是否意味着要显示控制台,我需要使用 JAVA_OPT 传递 jvm 参数作为 -Djboss.as.deployment.ondemand=false

类似地,standalone.sh 是使用以下命令启动的 - ./standalone.sh -b 0.0.0.0 & 这如何影响文档告诉我要做的事情。

基本上,我真的不明白发生了什么:/

最佳答案

我不建议使用环境变量作为参数。运行时的所有其他 java 都会传递此信息。

如果我明白你在说什么,那么你需要做类似的事情

./standalone.sh -Djboss.as.deployment.ondemand=false -b 0.0.0.0

如果这不起作用。尝试翻转论点。

关于java - 这是 JAVA_OPT JVM 标志吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25143421/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com