Yun-dimensional small knowledge---background running JBoss

Source: Internet
Author: User
Tags jboss jboss server



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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.