官术网_书友最值得收藏!

Running WildFly from a custom configuration folder

In this recipe, you will learn how to run WildFly from a custom configuration folder. This can be handy if you want to use the same WildFly installation folder, but run two or more WildFly instances with different configurations.

How to do it…

  1. What you have to do is to just copy the standalone folder to a path of your choice.
  2. That's it! Now just run WildFly as usual, specifying your configuration folder by passing the -Djboss.server.base.dir directive:
    $ cd $WILDFLY_HOME
    $ ./bin/standalone.sh -Djboss.server.base.dir=/your/config/path

How it works…

On specification of a different jboss.server.base.dir directory, WildFly tries to pick up the standalone.xml file from the expected folder. In fact, your configuration path has to maintain the same folder structure. WildFly lets you override different paths, in case you need to.

The following is a table summarizing all such paths:

There's more…

Furthermore, you can use a different configuration file by specifying it via the --server-config directive, as follows:

$ $WILDFLY_HOME/bin/standalone.sh --server-config=standalone-ha.xml
主站蜘蛛池模板: 杭锦旗| 宾阳县| 尼勒克县| 常德市| 申扎县| 舒兰市| 鹤山市| 昭苏县| 江川县| 长顺县| 亚东县| 永泰县| 乐业县| 禄丰县| 韶关市| 安丘市| 临夏县| 吉安市| 历史| 仙桃市| 临江市| 酒泉市| 香河县| 海安县| 扎囊县| 库伦旗| 栾川县| 宝兴县| 谷城县| 巴中市| 个旧市| 仪陇县| 内江市| 湟中县| 资兴市| 亳州市| 广安市| 大埔区| 那坡县| 醴陵市| 左云县|