Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum -y groupinstall "Development Tools"
- yum -y install make yum install gcc gcc-c++ kernel-devel zlib-devel pcre2-devel git
- mkdir nginx
- cd nginx/
- git clone https://github.com/FRiCKLE/ngx_cache_purge.git
- git clone https://github.com/maneulyori/nginx-http-auth-digest.git
- wget https://github.com/pagespeed/ngx_pagespeed/archive/release-1.11.33.2-beta.zip
- unzip release-1.11.33.2-beta.zip
- cd ngx_pagespeed-release-1.11.33.2-beta/
- wget https://dl.google.com/dl/page-speed/psol/1.11.33.2.tar.gz
- tar -xzvf 1.11.33.2.tar.gz psol/
- cd ..
- wget http://nginx.org/download/nginx-1.11.3.tar.gz
- tar -xzvf nginx-1.11.3.tar.gz
- wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
- tar -xzvf openssl-1.0.2h.tar.gz
- cd nginx-1.11.3/
- ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-march=native -O2 -pipe' --with-openssl=../openssl-1.0.2h --add-module=../ngx_pagespeed-release-1.11.33.2-beta --add-module=../nginx-http-auth-digest --add-module=../ngx_cache_purge
- make -j 9
- make install
- ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-march=native -O2 -pipe' --with-openssl=../openssl-1.0.2h --add-module=../nginx-http-auth-digest --add-module=../ngx_cache_purge
- sudo yum clean all
- sudo yum update
Add Comment
Please, Sign In to add comment