In some cases, mostly because of architectural reasons, you may need to run multiple WildFly instances on a single server. You can do this by isolating each instance and giving it a different binding port.
First of all, we need to create a standalone configuration for each instance that we want to set up and run. All we need to do is replicate the concept explained in the Running WildFly from a custom configuration folder recipe. Suppose we want two running nodes/instances, we use the following commands:
$ cd $WILDFLY_HOME $ cp -a standalone node-1 $ cp -a standalone node-2
Now we are ready to configure each instance.