Skip to content

Instantly share code, notes, and snippets.

@paramonovav
Last active September 9, 2015 08:25
Show Gist options
  • Save paramonovav/68f20c88f029dca99667 to your computer and use it in GitHub Desktop.
Save paramonovav/68f20c88f029dca99667 to your computer and use it in GitHub Desktop.
Install NGINX 1.8.0 (--with-threads) with OpenSSL 1.0.2d and SPDY (support TLSv1.1, TLSv1.2) on CentOS
cd /usr/local/src/
wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar -xvf nginx-1.8.0.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
tar -xvf openssl-1.0.2d.tar.gz
cd nginx-1.8.0/
./configure --prefix=/usr/share --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 --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-threads --with-openssl=/usr/src/openssl-1.0.2d --with-ipv6 --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_spdy_module
make install
@paramonovav
Copy link
Author

For more information about NGINX threads see https://www.nginx.com/blog/thread-pools-boost-performance-9x/

@paramonovav
Copy link
Author

--without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment