日期:2014-05-16  浏览次数:20702 次

Linux+Apache+Tomcat集群和负载均衡

服务器:

l? 192.168.14.30Apache负载)

l? 10.0.30.67Tomcat服务器)

l? 10.0.30.151Tomcat服务器)

软件环境:

l? CentOS-5.5-x86_64

l? Apache 2.2.3CentOS安装时自带)

l? jdk-6u26-linux-x64-rpm.bin

l? apache-tomcat-6.0.32.tar.gz

1、首先配置Tomcat服务器

安装JDK,并配置Java路径:

[root@cloud download]# vim /etc/profile

JAVA_HOME=/usr/java/jdk1.6.0_26

PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib

export JAVA_HOME

export PATH

export CLASSPATH

[root@cloud download]# source /etc/profile

[root@cloud download]# ./ jdk-6u26-linux-x64-rpm.bin

[root@cloud download]# java -version

java ver