Skip to content

Instantly share code, notes, and snippets.

@ossipov
Last active December 18, 2019 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ossipov/134ff65c3807d8c029dbaf8ce619f1fa to your computer and use it in GitHub Desktop.
Save ossipov/134ff65c3807d8c029dbaf8ce619f1fa to your computer and use it in GitHub Desktop.
nginx installation 2019
nginx_version=1.17.6
cd ~
wget https://nginx.org/download/nginx-$nginx_version.tar.gz
tar -xzvf nginx-$nginx_version.tar.gz
cd nginx-$nginx_version
./configure \
--user=www-data \
--group=www-data \
--sbin-path=/usr/bin/nginx \
--prefix=/var/lib/nginx \
--modules-path=/etc/nginx/modules \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--http-client-body-temp-path=/var/lib/nginx/temp/body \
--http-fastcgi-temp-path=/var/lib/nginx/temp/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/temp/proxy \
--http-scgi-temp-path=/var/lib/nginx/temp/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/temp/uwsgi \
--with-compat \
--with-debug \
--with-pcre-jit \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_realip_module \
--with-http_auth_request_module \
--with-http_v2_module \
--with-http_dav_module \
--with-http_slice_module \
--with-threads \
--with-http_addition_module \
--with-http_geoip_module=dynamic \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module=dynamic \
--with-http_sub_module \
--with-stream=dynamic \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-mail=dynamic \
--with-mail_ssl_module
make
make install
cd ..
rm -rf nginx-$nginx_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment