Install Jboss on Linux_X64,

Source: Internet
Author: User

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

 




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.