Install and configure jboss in linux

Source: Internet
Author: User
I did a performance test at the company. recently, it was relatively idle, so I simply studied the performance comparison between tomcat and jboss. I just did it. thanks to tomcat's familiarity, the environment was relatively mature, jboss is just getting in touch with this stuff, so it's a little raw, but I believe it's not big with tomcat...

 

I did a performance test at the company. recently, it was relatively idle, so I simply studied the performance comparison between tomcat and jboss. I just did it. thanks to tomcat's familiarity, the environment was relatively mature, jboss is just getting in touch with this stuff, so it is a bit raw, but I believe it should be no big difference with tomcat, it is very confident to start to work.

 

First download the installation package to be prepared:

Linux: Linux redhat

JDK Version: jdk1.6.0 _ 27

Jboss: jboss-5.1

 

JDK installation starts:

1. Upload the installation package to the usr directory of linux.

2. # Chmod + x jdk1.6.0 _ 27-linux-i586-rpm.bin grant permissions for other users to use.

3. #./Jdk1.6.0 _ 27-linux-i586-rpm.bin to get a jdk1.6.0 _ 27-linux-i586-rpm file.

4. # Chmod + x jdk1.6.0 _ 27-linux-i586-rpm.

5. # Rpm-ivh jdk1.6.0 _ 27-linux-i586-rpm to install the program.

In this case, we should see the installation protocol, and we will continue to press the Enter key to complete the installation.

Next, we need to set the environment variable.

6. # Vi/etc/profile. d/java. sh is used by all users. In the edit java. when the sh file is in the command mode, we need to switch the mode to the text mode and use I. Then we can edit it, write the following configuration as follows:

JAVA_HOME =/usr/java/jdk1.6.0 _ 27

CLASSPATH =.: $ JAVA_HOME/lib. tools. jar

PATH = $ JAVA_HOME/bin: $ PATH

Export JAVA_HOME CLASSPATH PATH

After writing, we need to convert the text mode to the command mode and use esc to switch. Then save and exit with: wq. We want to restart the machine now

# The shutdown-r now command can be used. After that, use java-version to obtain the following information:

Java version "1.6.0 _ 27"

Congratulations! JDK has been installed successfully.

 

After JDK is installed successfully, continue to install JBOSS.

8. From local file to system

Then upload the file to/usr/local/jboss-5.1 .GA.zip.

9. Decompress the file

# Unzip jboss-5.1 .GA.zip of course you can also decompress it to the directory you specified.

10. You have to set the environment variable.

# Vi/etc/profile

Add the following information to the File: www.2cto.com

JBOSS_HOME =/usr/local // jboss-5.1-GA

PATH = $ PATH:/usr/local/install/thirdparty/arm/2.95.3/bin

Export JBOSS_HOME PATH

11. We modified the file, so we need to make it effective immediately.

# Source/etc/profile

12. # Echo $ JBOSS_HOME is used to check whether your environment variables are output.

13. # Cd $ JBOSS_HOME/bin:

./Run. sh to start Jboss.

 

Use an IP address to access the page. the test page is displayed at http: // 127.0.0.1: 8080.

The installation is complete.

 

But don't be happy too early. if you don't need to access the local machine for a try, this will disappoint you ~~~~ But don't worry too much. let's take a look at the solution below.

 

1. I cannot access the page with an IP address, but it is completely correct to start the server. this problem makes my mind hurt. Finally, it turns out that an IP address needs to be bound when JBOSS is started.

Solution:

# Cd $ JBOSS_HOME/bin

# Mkdir start. sh

# Vi start. sh

Add the following content./run. sh-Djboss. bind. address = IP address of the jboss installation Machine &

Exit and save

#./Start. sh start jboss so that it can be accessed from the Internet.

 

From the column gzh0222

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.