Guest User

Untitled

a guest
Oct 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. yum -y groupinstall "Development Tools"
  2. yum -y install make yum install gcc gcc-c++ kernel-devel zlib-devel pcre2-devel git
  3. mkdir nginx
  4. cd nginx/
  5. git clone https://github.com/FRiCKLE/ngx_cache_purge.git
  6. git clone https://github.com/maneulyori/nginx-http-auth-digest.git
  7. wget https://github.com/pagespeed/ngx_pagespeed/archive/release-1.11.33.2-beta.zip
  8. unzip release-1.11.33.2-beta.zip
  9. cd ngx_pagespeed-release-1.11.33.2-beta/
  10. wget https://dl.google.com/dl/page-speed/psol/1.11.33.2.tar.gz
  11. tar -xzvf 1.11.33.2.tar.gz psol/
  12. cd ..
  13. wget http://nginx.org/download/nginx-1.11.3.tar.gz
  14. tar -xzvf nginx-1.11.3.tar.gz
  15. wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
  16. tar -xzvf openssl-1.0.2h.tar.gz
  17. cd nginx-1.11.3/
  18. ./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
  19. make -j 9
  20. make install
  21.  
  22. ./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
  23.  
  24. sudo yum clean all
  25. sudo yum update
Add Comment
Please, Sign In to add comment