linux_x64 Installing JBoss

Source: Internet
Author: User
Tags jboss

First, the system environment

System platform: RedHat 6.4

Java version:jdk-6u45-linux-x64

Jboss Version:jboss-5.1.0.ga-jdk6

Second, download jdk1.6

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html# Jdk-6u45-oth-jpr

Third, download JBoss 5.1

Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download

Four, decompression

1, decompression 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, decompression Jboss-5.1.0

Cd/root/jboss5.1_jdk1.6_installationpackage

Unzip jboss-5.1.0.ga-jdk6.zip-d/usr/local/

V. Configuring Environment variables

#vi/etc/profile

#添加如下内容

#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

Six, input vi/etc/sysconfig/iptables, add the following

#jboos Port

-A input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT

Seven, finally restart the firewall to make the configuration effective

/etc/init.d/iptables restart

Eight, run

#/usr/local/jboss/bin/run.sh-b 192.168.2.51

Nine, testing
http://192.168.2.51:8080

X. Shutting down the server

#/usr/local/jboss/bin//shutdown.sh–s (note case), or find its PID number, 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.