리눅스 APM설치 Aphache

컴코리아 2020.07.09 17:18 조회 수 : 75

cd /usr/local/src/

 

wget http://archive.apache.org/dist/httpd/httpd-2.2.22.tar.gz

 

tar -xvf httpd-2.2.22.tar.gz

 

cd httpd-2.2.22

 

yum install make gcc* g++ gcc-c++ autoconf automake libtool pkgconfig findutils oepnssl openssl-devel openldap-devel pcre-devel libxml2-devel lua-devel curl curl-devel libcurl-devel flex

 

./configure --enable-module=so --enable-mods-shared=most --enable-maintainer-mode --enable-deflate --enable-headers --enable-rewrite --enable-ssl --enable-proxy --enable-proxy-http --enable-proxy-ajp --enable-proxy-balance --prefix=/usr/local/apache --enable-mpms-shared=all

 

make

 

make install

 

cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

 

 

vi /etc/init.d/httpd 접속후 아무대나 아래 5줄추가

 

 

# chkconfig: 2345 90 90

# description: init file for Apache server daemon

# processname: /usr/local/apache/bin/apachectl

# config: /usr/local/apache/conf/httpd.conf

# pidfile: /usr/local/apache/logs/httpd.pid

 

chkconfig --add httpd

chkconfig httpd on

 

httpd.conf 접속후 servername을 자기 IP로 변경