-
[Linux]APM 소스설치_Apache2.4.48Server 2021. 9. 13. 15:11
1. 패키지 설치
apt-get install gcc apt-get install make apt-get install libexpat1-dev apt-get install g++
2. 의존성패키지 설치
apache 설치에 앞서 세 가지 의존성 패키지를 설치해야 한다.
- apr
$ cd /usr/local $ wget http://mirror.navercorp.com/apache//apr/apr-1.7.0.tar.gz $ tar xvfz apr-1.7.0.tar.gz $ cd /usr/local/apr-1.7.0 $ ./configure --prefix=/usr/local/apr $ make $ make install
- apr-util
$ cd /usr/local $ wget http://mirror.navercorp.com/apache//apr/apr-util-1.6.1.tar.gz $ tar xvfz apr-util-1.6.1.tar.gz $ cd /usr/local/apr-util-1.6.1 $ ./configure --with-apr=/usr/local/apr --prefix=/usr/local/apr-util $ make $ make install
- pcre
$ cd /usr/local $ wget ftp://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz $ tar xvfz pcre-8.43.gar.gz $ cd /usr/local/pcre-8.43 $ ./configure --prefix=/usr/local/pcre $ make $ make install
3. Apache2.4.48 설치
$ cd /usr/local $ wget http://apache.tt.co.kr//httpd/httpd-2.4.48.tar.gz $ tar xvfz httpd-2.4.48.tar.gz
$ cd /usr/local/httpd-2.4.48 $ ./configure --prefix=/usr/local/apache2.4 \ --enable-module=so --enable-rewrite --enable-so \ --with-apr=/usr/local/apr \ --with-apr-util=/usr/locamake l/apr-util \ --with-pcre=/usr/local/pcre \ --enable-mods-shared=all $ make $ make install
$ apt-get install net-tools $ apt-get install curl
$ sudo /usr/local/apache2.4/bin/httpd -k start $ ps -ef|grep httpd|grep -v grep $ sudo netstat -anp|grep httpd $ sudo curl http://127.0.0.1
'Server' 카테고리의 다른 글
[Linux]MySQL 외부 접속 / MySQL workbench (0) 2021.09.22 [Linux]AWS EC2 서버 구축_NPM 설치 (0) 2021.09.22 [Windows]Bitnami를 이용한 Local 서버 구축, 포트 포워딩 (0) 2021.09.22 [Linux]APM 소스설치_PHP7.4.1 (0) 2021.09.13 [Linux]APM 소스설치_MySQL8.0.19 (0) 2021.09.13 - apr