Install Jboss on Linux_X64,
I. System Environment
System Platform: RedHat 6.4
Java version: jdk-6u45-linux-x64
Jboss version: jboss-5.1.0.GA-jdk6
2. Download jdk1.6
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR
3. Download jboss 5.1.
Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download
Iv. Decompress
1. Decompress jdk1.6.45
Cd/root/Jboss5.1 _ jdk1.6 _ InstallationPackage
Bash./jdk-6u45-linux-x64.bin
Mv jdk1.6.0 _ 45/usr/local/java
2. Unzip the Jboss-5.1.0
Cd/root/Jboss5.1 _ jdk1.6 _ InstallationPackage
Unzip jboss-5.1.0.GA-jdk6.zip-d/usr/local/
5. Configure Environment Variables
# Vi/etc/profile
# Add the following content
# Set java environment
JAVA_HOME = "/usr/local/java"
CLASS_PATH = "$ JAVA_HOME/lib: $ JAVA_HOME/jre/lib"
PATH = ".: $ PATH: $ JAVA_HOME/bin"
Export JAVA_HOME CLASS_PATH PATH
6. Input vi/etc/sysconfig/iptables and add the following
# Jboos port
-A input-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT
7. Restart the firewall to make the configuration take effect.
/Etc/init. d/iptables restart
8. Run
#/Usr/local/jboss/bin/run. sh-B 192.168.2.51
9. Test
Http: // 192.168.2.51: 8080
10. Shut down the server
#/Usr/local/jboss/bin // shutdown. sh-S (case sensitive), or locate its pid and kill it.
Find the jboos command ps-ef | grep jboss, such as kill-9 6970