포스트

Apache Install

1. 아파치(Apache) 자동 설치

1
2
1. dnf install httpd 명령어를 이용하여 쉽게 설치 가능
2. 선택지가 나오면 y 입력

자동설치 이미지 자동설치 이미지

2. 아파치(Apache) 수동 설치

1
2
3
4
5
6
7
1. ServerRoot : /usr/local/apache
2. 각 파일들 링크 클릭 후 다운로드
3. winscp 또는 filezilla와 같은 ftp 서버를 이용하여 파일을 전달
  1) mkdir -p /tmp/lib
  2) cd /tmp/lib
  3) tar zxfv 파일이름
4. 압축 해제 후 설치 순서에 맞게 설치하기

1. m4

1
2
3
1. cd /tmp/lib/m4-1.4.19
2. ./configure --prefix=/usr
3. make && make install

m4 이미지

2. autoconf

1
2
3
1. cd /tmp/lib/autoconf-2.71
2. ./configure --prefix=/usr
3. make && make install

autoconf 이미지

3. automake

1
2
3
1. cd /tmp/lib/automake-1.16.5
2. ./configure --prefix=/usr
3. make && make install

automake 이미지

4. expat

1
2
3
1. cd /tmp/lib/expat-2.5.0
2. ./configure --prefix=/usr
3. make && make install

expat 이미지

5. apr

1
2
3
4
5
1. cd /tmp/lib/apr-1.7.4
2. ./configure --prefix=/usr/local/src/apr-1.7.4
3. cp -arp libtool libtoolT
4. make && make install
5. libtool --finish /usr/lib

6. apr-util

1
2
3
1. cd /tmp/lib/apr-util-1.6.3
2. ./configure --prefix=/usr/local/src/apr-util-1.6.3 --with-apr=/usr/local/src/apr-1.7.4
3. make && make install

apr 이미지

7. pcre

1
2
3
4
1. cd /tmp/lib/pcre2-10.42
2. export PKG_CONFIG_PATH=/usr/local/src/apr-1.7.4/lib/pkgconfig:/usr/local/src/apr-util-1.6.3/lib/pkgconfig
   ./configure --prefix=/usr/local/src/pcre2-10.42
3. make && make install

pcre 이미지

8. httpd

1
2
3
1. cd /tmp/lib/httpd-2.4.58
2. ./configure --prefix=/usr/local/apache --enable-modules=most --enable-mods-shared=all --enable-so --with-apr=/usr/local/src/apr-1.7.4 --with-apr-util=/usr/local/src/apr-util-1.6.3 --with-pcre=/usr/local/src/pcre2-10.42/bin/pcre2-config
3. make && make install

httpd 이미지

출처

이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.