The easiest way is to install WildFly on Mac OS X is through Homebrew the free open-source package managment system.

Requirements: install homebrew first.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

Then, install WildFly as follows:

$ brew update
Already up-to-date.
$ brew search wildfly
wildfly-as
$ brew install wildfly-as
==> Downloading https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.tar.gz
##########                                                                
==> Caveats
The home of WildFly Application Server 16 is:
  /usr/local/opt/wildfly-as/libexec
You may want to add the following to your .bash_profile:
  export JBOSS_HOME=/usr/local/opt/wildfly-as/libexec
  export PATH=${PATH}:${JBOSS_HOME}/bin
==> Summary
 /usr/local/Cellar/wildfly-as/16.0.0.Final: 1,180 files, 153.4M, built in 7 minutes 18 seconds

WildFly bin folder is located in /usr/local/opt/wildfly-as/libexec/bin

$ cd /usr/local/opt/wildfly-as/libexec/bin
$ ./standalone.sh

install wildfly on mac install wildfly on mac

To stop the server use Ctrl + C (this doesn’t always work);

So use this command:

$ ./jboss-cli.sh --connect command=:shutdown
0
0
0
s2sdefault

Related articles available on mastertheboss.com

JBoss MBeans POJO

JMX MBean services are the core building blocks of the JBoss Appl

How to a dump of JNDI tree with JMX console ?

#2 JBoss Howto. This is the recipe of the day

How to configure JBoss to bind to a different IP ?

If you want to change the jboss.bind.address property use the&nbs

How to shut down JBoss from remote ?

JBoss recipe of the day

How to create multiple instances of an Mbean?

  Supposing you need two instances of an MBean, let's say one fo

JBoss classloader issues

By default JBoss (prior to version 3.2) uses a flat class loading