Centos5.4 jboss-5.1.0.GA-jdk6 Installation

Source: Internet
Author: User
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.

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.