How to start/stop Servers and ServerGroups from the CLI
Here is a quick tip: How to start or stop all servers belonging to a WildFly Server Group using the Command Line Interface.
Connect to the Command Line Interface:
$ ./jboss-cli.sh -c
Now in order to stop all server groups in “main-server-group”:
/server-group=main-server-group:stop-servers
Conversely, to start all server groups in the “main-server-group”_
/server-group=main-server-group:start-servers
On the other hand, if you want to start a single Server node:
/host=local/server-config=server-one:start
Finally, if you want to stop a single Server node:
/host=local/server-config=server-one:stop
To learn mode about Domain management, check this tutorial:
Example: How to stop just “server-one”: How to manage a WildFly / JBoss EAP Domain
Recommended Articles
Admin Tip: Check WildFly Configuration Changes with CLI in Just Two Steps
Learn how to audit and track configuration changes for your WildFly Server using the Command Line Interface. #WildFly #Java #CloudNative
Mastering JBoss CLI Scripts for Domain Mode Operations
Learn how to configure resources, reach server nodes, and manage server groups with JBoss CLI scripts in domain mode.
Configure Load Balancing Groups in WildFly with mod_cluster for Better Application Performance
Learn how to configure load balancing groups in WildFly using mod_cluster to improve application performance and reduce random requests across the full cluster.
How to Start, Stop, and Restart WildFly and JBoss EAP
Learn how to manage WildFly application server lifecycle and troubleshoot issues. Explore standalone vs domain modes.