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