Centos5.4 jboss-5.1.0.GA-jdk6 Installation
First download and install the jdk-6u18-linux-i586.bin
CD/usr/Java
Chmod A + x jdk-6u18-linux-i586.bin
Sh jdk-6u18-linux-i586.bin
Next, configure the environment variables.
VI/etc/profile
Add at the end:
Export java_home =/usr/Java/jdk1.6.0 _ 18
Export classpath =.: $ java_home/lib: $ class_path
Export Path = $ path: $ java_home/bin
2. Download jboss-5.1.0.ga-jdk6.zip
Groupadd-G 2001 JBoss
Useradd-u 2001-G JBoss
CD/usr/local/Server
Unzip jboss-5.1.0.GA-jdk6.zip
Music jboss-5.1.0.GA-jdk6 jboss5
VI jboss5/bin/jboss_init_redhat.sh
Join:
# Jboss_host =$ {jboss_host:-"0.0.0.0 "}
Change 0.0.0.0 to the local IP address.
Modify as follows:
Jboss_home =$ {jboss_home:-"/usr/local/Server/jboss5 "}
Jboss_user =$ {jboss_user:-"JBoss "}
Javapth =$ {javapth:-"/usr/Java/jdk1.6.0 _ 18/bin "}
Jboss_conf =$ {jboss_conf:-"default "}
Create a boot entry:
CP/usr/local/Server/jboss5/bin/jboss_init_redhat.sh/etc/init. d/JBoss
VI/etc/rc. d/rc. Local
Join:
/Etc/rc. d/init. d/JBoss start
Init 6
3. Try http: // localhost: 8080 after startup.
Iv. DeploymentProgram:
Upload the published war file to jboss5/Server/default/deploy on the server. For example, upload hello. War and try http: // localhost: 8080/hello.