Yun-dimensional small knowledge---background running JBoss
Recently, due to the project to start contact with Linux, the two-day project registration test, found a good test environment after a little problem.
Problem Description
Each remote use command shstandalone.sh to start JBoss, the published site is normal access, and when I close the remote session window, the page can not be accessed.
Reproduce the problem
Use SECURECRT to log on to Linux servers using commands to enter the Bin folder under JBoss
cd/usr/local/jboss6.2/bin/
Start the JBoss server with the following command
SH standalone.sh (may also be./standalone.sh)
Clones the current link into the log folder under JBoss
cd/usr/local/jboss6.2/standalone/log/
Open log
Tail–f Server.log
When the current session is closed, the log finally discovers that JBoss has been closed (pictured below), indicating that the JBoss server has been shut down.
Solving Method
To shut down the JBoss server without shutting down, you need to run JBoss in the background, then we can go to the Bin folder under JBoss to execute the following command.
Nohup/standalone.sh & (may also be nohup shstandalone.sh &)
In this case, the JBoss process will execute as soon as the reply is closed.
other
We may also use the command to view the JBoss process throughout the process:
PS Ax|grep JBoss
command to Kill Process:
Kill-9 Process Name