Is there an easy way to create a new Wildfly server instance

Is there an easy way to create a new instance of Wildfly.

In JBoss AS5, all you had to do was create a copy of the default or all and run jboss with:

run.sh -c [New instance name]

AT standalone.sh

there is no such option.
+4
source share
2 answers

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
# edit the configs here if necessary ...
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).

+7

--server-config -c, . , JBoss ""

$JBOSS_HOME/bin/standalone.sh --server-config=standalone-ha.xml

, .

WildFly -
WildFly -

0

All Articles