The change that started with JBoss AS7 and continues with WildFly is that the entire server configuration is saved in a single file. Several default configurations (or profiles) have been prepared:
- default (
standalone.xml- used by default - without clustering and messaging) - HA (
standalone-ha.xml- supports clustering) - (
standalone-full.xml - ) - HA (
standalone-full-ha.xml - )
, -c switch
./standalone.sh -c standalone-full-ha.xml
, XML , CLI (jboss-cli.sh/bat) .
(, standalone/deployments), standalone , , . :
cd $JBOSS_HOME
cp -r standalone standalone1; cp -r standalone standalone2
bin/standalone.sh -c standalone-ha.xml \
-Djboss.server.base.dir=`pwd`/standalone1 \
-Djboss.node.name=host1 &
bin/standalone.sh -c standalone-ha.xml \
-Djboss.server.base.dir=`pwd`/standalone2 \
-Djboss.node.name=host2 \
-Djboss.socket.binding.port-offset=200 &
2 standalone . 200 (, , 8280).