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

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
主站蜘蛛池模板: 井研县| 中超| 鹤庆县| 资源县| 吴川市| 宜良县| 饶河县| 静乐县| 安庆市| 来凤县| 三门峡市| 淳化县| 赣榆县| 云霄县| 姜堰市| 安国市| 封丘县| 闸北区| 安国市| 惠东县| 达尔| 会东县| 尚志市| 留坝县| 马鞍山市| 吉木萨尔县| 拜城县| 合作市| 华容县| 施秉县| 湾仔区| 响水县| 桐乡市| 宜章县| 保定市| 民丰县| 楚雄市| 壶关县| 亳州市| 社旗县| 庆元县|