티스토리 뷰

CentOS 6.4 Linux + Apache + Apache Tomcat 연동

 

1. 라이브러리 설치

yum install gcc gcc-c++ libtermcap-devel gdbm-devel zlib* libxml* freetype* libpng* libjpeg* libtool flex gmp ncurses-devel pcre* apr-devel openssl-devel

 

 

2. 아파치 설치

tar xvfz httpd-2.2.24.tar.gz

cd httpd-2.2.24

./configure --prefix=/usr/local/apache --enable-mods-static=most --with-mpm=worker --with-included-apr --enable-expires --enable-deflate --enable-headers --enable-rewrite --enable-proxy --enable-ssl --enable-so

OR

./configure --prefix=/usr/local/apache --with-mpm=worker --enable-mods-shared=all --enable-module=so --enable-module=rewrite --with-included-apr

make && make install

 

 

3. Tomcat-Connectors 설치

tar xvfz tomcat-connectors-1.2.37-src.tar.gz

cd tomcat-connectors-1.2.37-src/native

./buildconf.sh

./configure --prefix=/usr/local/apache --with-apxs=/usr/local/apache/bin/apxs

make && make install

 

 

4. JAVA 설치 

tar xvfz jdk1.6.0_38.tar.gz -C /usr/local/

ln -s /usr/local/jdk1.6.0_38 /usr/local/java

 

echo "export JAVA_HOME=/usr/local/java" >> /etc/profile

echo "export CATALINA_HOME=/usr/local/tomcat" >> /etc/profile

echo "export CLASSPATH=$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar" >> /etc/profile

echo "export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin" >> /etc/profile

 

 

5. TOMCAT 설치

tar xvfz apache-tomcat-7.0.35.tar.gz -C /usr/local/

ln -s /usr/local/apache-tomcat-7.0.35 /usr/local/tomcat

 

 

6. Tomcat-Native 설치

tar xvfz tomcat-native-1.1.29-src.tar.gz

cd tomcat-native-1.1.29-src/jni/native/

./configure --prefix=/usr/local/tomcat --with-apr=/usr --with-java-home=/usr/local/java --with-ssl

 

 

참고 URL :

http://www.pomegranate.de/en/OpenSource/OpenCMS/OpenCMS_Cluster.html

http://blog.naver.com/PostView.nhn?blogId=ekrnfkdi&logNo=130149328491

 

 

 

 

댓글
댓글쓰기 폼