【问题标题】:how add/modify standalone.xml in remote wildfly 8,9 openshift如何在远程 Wildfly 8,9 openshift 中添加/修改standalone.xml
【发布时间】:2017-02-28 03:17:21
【问题描述】:

我也尝试在 Wildfly 8 和 Wildfly 9 的 openshift 中远程访问中查找文件standalone.xml,但没有结果。

我找到了页面:http://blog.arungupta.me/wildfly-custom-standalone-configuartion-file-openshift/ where 描述了应该在哪里找到文件的位置,但它不存在。

我的控制台文件:

有什么办法,如何使用自己的配置xml?

【问题讨论】:

    标签: openshift wildfly


    【解决方案1】:

    %WILDFLY_HOME%\standalone\configuration 中查找standalone.xml。在那里你应该找到standalone.xlmstandalone-full.xmlstandalone-full-ha.xml(如果你还想以不同的模式驾驶你的野蝇)。

    【讨论】:

    • 是的,但是重启wildfly后,所有设置都恢复到基本配置
    • 这符合预期,因为您的所有更改都必须是可复制的。因此,您必须更改您的墨盒/映像(在 OpenShift v3 中)或您在 OS2 中的脚本以在部署墨盒/映像之前更新配置
    【解决方案2】:

    Openshift Online 允许您通过将文件放置在应用程序存储库中来覆盖应用程序中的默认standalone.xml。 v3 的位置与 v2 的位置略有不同。

    在 Openshift Online v3 中覆盖standalone.xml

    将您的覆盖文件放入

    /cfg/standalone.xml
    

    在 Openshift Online v2 中覆盖standalone.xml

    将您的覆盖文件放入

    /.openshift/config/standalone.xml
    

    【讨论】:

    • 这是在哪里记录的?我找不到这个搜索 Openshift v3 文档。
    • @MichaelEdgar 抱歉,没有来源,因为我是从教程/示例中拼凑起来的。他们应该改进这方面的文档。
    猜你喜欢
    • 1970-01-01
    • 2019-08-18
    • 1970-01-01
    • 2021-10-14
    • 2016-10-16
    • 1970-01-01
    • 1970-01-01
    • 2017-01-14
    • 1970-01-01
    相关资源
    最近更新 更多