반응형

패키지 설지

yum -y install gcc*
yum -y install libtool*
yum -y install expat-devel

1.pcre 설치
cd /FILES/apache
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
tar -zxvf /FILES/apache/pcre-8.43.tar.gz
cd pcre-8.43
./configure --prefix=/SW/package/pcre-8.43
make && make install

2.apr 설치
cd /FILES/apache
wget http://archive.apache.org/dist/apr/apr-1.6.5.tar.gz
tar -zxvf apr-1.6.5.tar.gz
cd apr-1.6.5
./configure --prefix=/SW/package/apr-1.6.5
make && make install

3.apr-util 설치
cd /FILES/apache
wget http://archive.apache.org/dist/apr/apr-util-1.6.1.tar.gz
tar -zxvf apr-util-1.6.1.tar.gz
cd apr-util-1.6.1
./configure --prefix=/SW/package/apr-util-1.6.1 --with-apr=/SW/package/apr-1.6.5
make && make install

4.openssl 설치
cd /FILES/apache
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
tar -zxvf openssl-1.1.1b.tar.gz
cd openssl-1.1.1b
./config--prefix=/SW/package/openssl-1.1.1b
make && make install

5.apache 설치
cd /FILES/apache
wget http://mirror.apache-kr.org/httpd/httpd-2.4.39.tar.gz
tar -zxvf httpd/httpd-2.4.39.tar.gz
cd httpd-2.4.39
----------------------------------------------------------------
# prefork(Process 방식) 설치 #
"./configure" \
"--prefix=/SW/apache/apache-2.4.39" \
"--with-apr=/SW/package/apr-1.6.5" \
"--with-apr-util=/SW/package/apr-util-1.6.1" \
"--with-pcre=/SW/package/pcre-8.43" \
"--with-ssl=/SW/package/openssl-1.1.1b" \
"--with-expat" \
"--enable-ssl" \
"--enable-sockets" \
"--enable-mods-shared=all" \
"--enable-module=so" \
"--enable-shared=max" \
"--enable-rewrite"

# mpm(Thread 방식) 설치 #
"./configure" \
"--prefix=/SW/apache/apache-2.4.39" \
"--with-apr=/SW/package/apr-1.6.5" \
"--with-apr-util=/SW/package/apr-util-1.6.1" \
"--with-pcre=/SW/package/pcre-8.43" \
"--with-ssl=/SW/package/openssl-1.1.1b" \
"--with-expat" \
"--with-mpm=MPM" \ 
"--enable-ssl" \
"--enable-sockets" \
"--enable-mods-shared=all" \
"--enable-module=so" \
"--enable-shared=max" \
"--enable-rewrite"
----------------------------------------------------------------
make && make install

6.tomcat connector 설치
yum -y install perl
cd /FILES/apache
wget http://apache.tt.co.kr/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz
tar -zxvf tomcat-connectors-1.2.46-src.tar.gz
./configure --with-apxs=/SW/apache/apache-2.4.39/bin/apxs
make && make install

+ Recent posts