Start/Stop JBoss from Command line on Linux
In this tutorial, we will learn the frequent server actions performed from the command line. Start and Stop JBoss from the command line in Linux terminal. We use Ubuntu Linux distribution for this tutorial.
Install JBoss on Linux: https://www.testingdocs.com/install-jboss-application-server-on-linux/
Start JBoss in standalone mode:
Change Working directory to $JBOSS_HOME/bin
Issue the following command:
This command will start the server.
In the terminal where the JBoss is started, type Ctrl + C to stop the JBoss server gracefully.
Non graceful stop
Grep the process id of the JBoss server wit the ps command and issue a kill -9 <jboss_pid>
$ ps -aef | grep wildfly
For example, if the process id of the JBoss server is 7152, then issue the following command to kill the process non gracefully.
$ kill -9 7152
As an analogy, this option is like hitting the power button to stop a machine like Laptop without closing the running applications and choosing the shutdown option provided in the OS.
Start/Stop JBoss from Eclipse IDE
More Information on JBoss / Wildfly Application server: