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

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
主站蜘蛛池模板: 黄浦区| 汨罗市| 永和县| 永定县| 广平县| 苏州市| 灌南县| 绥滨县| 微博| 福海县| 康保县| 花莲市| 榆林市| 宜阳县| 黄浦区| 任丘市| 神池县| 邯郸市| 临泽县| 平邑县| 晴隆县| 汤阴县| 威信县| 林甸县| 潮州市| 石林| 京山县| 镇坪县| 正蓝旗| 新干县| 仪陇县| 肇东市| 上栗县| 长葛市| 潜山县| 南部县| 横山县| 蓬安县| 南康市| 乌兰浩特市| 宁化县|