Web/nginx
[Linux] Nginx 1.16.1 Compile
고지식한청춘
2020. 6. 11. 13:41
728x90
Nginx 1.16.1 컴파일
1. Compile을 위한 패키지 설치
# yum -y install wget gcc gcc-c++ pcre-devel openssl-devel expat-devel zlib
2. Nginx Source file 설치
# wget http://nginx.org/download/nginx-1.16.1.tar.gz
# tar -xzf nginx-1.16.1.tar.gz
# cd nginx-1.16.1
3. Compile
# ./configure --with-http_ssl_module --with-debug --prefix=/usr/local/nginx
# make
# make install
5. Nginx 실행
# /usr/local/nginx/sbin/nginx
◎ 정상적으로 Nginx가 설치되었는지 확인
1. 주소창에 WebServer의 IP 입력
2. Welcome to nginx!가 출력되면 정상
728x90