How to Start, Stop and Restart WildFly

This guide contains some tips to teach you how to start, stop, restart WildFly application server

First of all, WildFly can be run in two modes: Standalone mode and Domain mode.

How to start, stop, restart WildFly in Standalone mode

You can start WildFly as follows. Move into the bin folder of your installation and run:

$ ./standalone.sh

The above command will start WildFly with the default (standalone.xml) configuration. If you want to provide another configuration available, just pass it as argument:

$ standalone.sh -c standalone-full.xml

The recommended way to stop WildFly is by connecting to it via its management interface (jboss-cli.sh):

$ ./jboss-cli.sh

Then, from there execute:

[standalone@localhost:9990 /] shutdown 

You can restart the application server, passing it as argument to shutdown:

[standalone@localhost:9990 /] shutdown --restart=true 

You can also specify in a timeout for the shutdown as follows

[standalone@localhost:9990 /] shutdown --timeout=10 

If there is no timeout specified it will wait indefinitely.

How to start, stop, restart WildFly in Domain mode

You can start WildFly Domain as follows. Move into the bin folder of your installation and run:

$ ./domain.sh

The recommended way to stop WildFly is by connecting to it via its management interface (jboss-cli.sh):

$ ./jboss-cli.sh

To Stop all servers in a Host:

/host=master:stop  

To restart all servers in a Host:

/host=master:stop(restart=true)  

To Stop a single server in a Host:

/host=master/server-config=server-one:stop

To restart a single server in a Host:

/host=master/server-config=server-one:stop(restart=true)  

How to start, stop, restart WildFly when the CLI is not available

If you have a Management user, you can still Start, Stop and Restart WildFly using the Web Console which is available at http://localhost:9990

When running in Standalone mode, select the Runtime upper Tab and, from your Server name, click on the Combo Menu’s arrow. You should be able to Reload, Restart or Suspend the Server from there:

start stop and restart jboss wildfly

Much the same way, when running in Domain mode, you can perform the same Management actions on your Domain Host, on Server Groups or on Individual Servers:

start stop and restart jboss wildfly