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

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
主站蜘蛛池模板: 体育| 黔江区| 分宜县| 望谟县| 临沧市| 高碑店市| 临安市| 安溪县| 招远市| 四子王旗| 黑龙江省| 罗源县| 上杭县| 嘉荫县| 府谷县| 类乌齐县| 枣阳市| 黄浦区| 自贡市| 闵行区| 宣武区| 饶平县| 新巴尔虎左旗| 通榆县| 陕西省| 高淳县| 澄江县| 友谊县| 丽江市| 修水县| 阜新| 武胜县| 鹤峰县| 南宁市| 阿坝| 北安市| 太湖县| 五原县| 东平县| 淮滨县| 苗栗市|