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.