Apache與tomcat的整合及負載均衡(doc 8頁)
Apache與tomcat的整合及負載均衡(doc 8頁)內容簡介
Apache與tomcat的整合及負載均衡內容提要:
一、安裝軟件。。。
1 tar -xzvf jdk1.6.0_19.tar.gz
2 tar xvfz tomcat.tar.gz
3 tar zxvf httpd-2.2.19.tar.gz
4 cd httpd-2.2.19
5 ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most --with-mpm=worker
6 make
7 make install
8 tar zxvf jakarta-tomcat-connectors-1.2.10-src.tar.gz
9 cd jakarta-tomcat-connectors-1.2.10-src/jk/native/
10 ./buildconf.sh
11 ./configure --with-apxs=/usr/local/apache2/bin/apxs
12 make
13 make install
二、配置整合及負載均衡
1 cp /usr/local/jakarta-tomcat-connectors-1.2.10-src/jk/native/apache-2.0/mod_jk.so /usr/local/apache2/modules
2 配置環境變量
vi /etc/profile
在文本末尾加入以下內容
JAVA_HOME=JDK安裝路徑
CATALINA_HOME=tomcat安裝路徑
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/lib/servlet-api.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CATALINA_HOME CLASSPATH PATH
3 應用初始的環境變量
source /etc/profile
4 修改apache的httpd.conf
vi /usr/local/apache2/conf/httpd.conf
修改以下幾處
..............................
一、安裝軟件。。。
1 tar -xzvf jdk1.6.0_19.tar.gz
2 tar xvfz tomcat.tar.gz
3 tar zxvf httpd-2.2.19.tar.gz
4 cd httpd-2.2.19
5 ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most --with-mpm=worker
6 make
7 make install
8 tar zxvf jakarta-tomcat-connectors-1.2.10-src.tar.gz
9 cd jakarta-tomcat-connectors-1.2.10-src/jk/native/
10 ./buildconf.sh
11 ./configure --with-apxs=/usr/local/apache2/bin/apxs
12 make
13 make install
二、配置整合及負載均衡
1 cp /usr/local/jakarta-tomcat-connectors-1.2.10-src/jk/native/apache-2.0/mod_jk.so /usr/local/apache2/modules
2 配置環境變量
vi /etc/profile
在文本末尾加入以下內容
JAVA_HOME=JDK安裝路徑
CATALINA_HOME=tomcat安裝路徑
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/lib/servlet-api.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CATALINA_HOME CLASSPATH PATH
3 應用初始的環境變量
source /etc/profile
4 修改apache的httpd.conf
vi /usr/local/apache2/conf/httpd.conf
修改以下幾處
..............................
用戶登陸
IT行業相關下載