* Remote Linux software SSH Secure Shell
* Install software Jdk-6u45-linux-x64-rpm.bin, Jboss-4.2.3.ga.zip
First, install and configure the Java environment
1, download the JDK installation package jdk-6u45-linux-x64-rpm (need to extract)
2. Copy the JDK installation package jdk-6u45-linux-x64-rpm to any directory in Redhat. For example/home/instal (install requires manual creation)
3. Enter the/home/install directory Cd/home/install
4, the implementation of the right to operate #chmod +x Jdk-6u45-linux-x64-rpm.bin
5. Execute the decompression command./jdk-6u45-linux-x64-rpm.bin
6, decompression completed, back to the/home/install directory, you can see a few more files, which has an installation file: jdk-6u45-linux-amd64.rpm
7. Execute the installation command RPM-IVH jdk-6u45-linux-amd64.rpm
At this point, start installing the JDK. After the installation is complete, you can find a new Java folder in the/usr directory with the installed JDK
8. Setting Environment variables
After the/etc/profile file is added
#SET javaenvironment
Java_home=/usr/java/jdk1.6.0_45 #配置jdk路径
Path= $PATH: $JAVA _home/bin
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Exportjava_home
Export PATH
Exportclasspath
9. After Setup is complete, enter java-version
If a javaversion "1.6.0_45" appears, your JDK is installed successfully
Ii. Installing and configuring JBoss
1, the Jboss-4.2.3.ga.zip compressed package copy redhat Any directory, for example/home/service
2, decompression JBoss unzip Jboss-4.2.3.ga-jdk6.zip (at this time if the name is too long, you can change the name rename Jboss-4.2.3.ga jboss)
3. Test whether the installation is successful
cd/home/server/jboss-4.2.3.ga/bin/
./run–b 0.0.0.0
Using a browser to access the server, if a JBoss welcome interface indicates that the installation was successful
4. Setting Environment variables
Edit/etc/profile File
#SET JBOSS Environment
Jboss_home=/home/server/jboss-4.2.3.ga #jboss安装路径
Export Jboss_home
JBOSS Advanced Configuration
1. Configure JBoss service for Linux and boot automatically
1) Create service file Cp/home/server/jboss/bin/jboss_init_redhat.sh/etc/rc.d/init.d/jboss
2) Modify the service file (can download the file, directly modify)
Vi/etc/rc.d/init.d/jboss
I, modify boss_home:boss_home=${jboss_home:-"/home/server/jboss-4.2.3.ga"}
II. Modify javapth:javapth=${javapth:-"/usr/java/jdk1.6.0_45/bin"}
III. Modify the Startup User: jboss_user=${jboss_user:-"root"}
IV, set all IP to access JBoss
Add statement under jboss_conf=${jboss_conf:-"default": jboss_host=${jboss_host:-"0.0.0.0"}
3) Set the boot step
Ln-s/etc/init.d/jboss/etc/rc3.d/k20jboss
Ln-s/etc/init.d/jboss/etc/rc3.d/s80jboss
Ln-s/etc/init.d/jboss/etc/rc5.d/k20jboss
Ln-s/etc/init.d/jboss/etc/rc5.d/s80jboss
4) Assigning Execution permissions
Chmod-f 770/etc/init.d/jboss
Chmod-f 770/etc/rc3.d/s80jboss
CHMOD-RF 770 $JBOSS _home
5) Start-up services: Service JBoss Start (Shutdown service: Service JBoss Stop restart: Services JBoss restart)
2. Configuring JBoss JRE Memory
Vi/home/server/jboss/bin/run.conf
Modify if ["x$java_opts" = "x"]; Then the
Java_opts= "-xmx8192m-xms8192m-xx:maxpermsize=512m" (Configure JDK Runtime memory to 8G)
III. Deployment Projects
Place the project with the. War suffix in the/jboss-4.2.3.ga/server/default/deploy directory, and restart JBoss (service JBoss restart) to
Linux Deployment Web Program