JBoss Linux boot Configuration

Source: Internet
Author: User
Jboss for Linux boot

1. Copy the jboss Startup file to the system startup directory.

Cp/opt/ci/jboss/bin/jboss_init_redhat.sh/etc/rc. d/init. d/jboss

2. Add a jboss User: (if the following JBOSS_USER is set to root, this step can be ignored)
Groupadd-g 200 jboss
Useradd-u 200-g jboss

3. Edit vi/etc/rc. d/init. d/jboss.

Add at the beginning of the file:

JBOSS_HOST =$ {JBOSS_HOST:-"0.0.0.0 "}

Modify the following values:

JBOSS_HOST =$ {JBOSS_HOST:-"0.0.0.0 "}

JBOSS_HOME =$ {JBOSS_HOME:-"/opt/ci/jboss "}

JBOSS_USER =$ {JBOSS_USER:-"root "}

JAVAPTH =$ {JAVAPTH:-"/opt/ci/jdk/bin "}

JBOSS_CONF =$ {JBOSS_CONF:-"default "}

4. Configure the system self-starting file (either of the two methods can be used)

A)

# Ln-s/etc/init. d/jboss/etc/rc0.d/K20jboss

# Ln-s/etc/init. d/jboss/etc/rc3.d/S80jboss

# Ln-s/etc/init. d/jboss/etc/rc5.d/S80jboss

# Chmod-f 755/etc/init. d/jboss

B)

Edit vi/etc/rc. d/rc. local and add the following line.

/Etc/rc. d/init. d/jboss start

After the configuration is complete, restart.

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.