Skip to content

Instantly share code, notes, and snippets.

@JimmyVV
Created September 17, 2016 12:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JimmyVV/81d6139c41bcde1b614ac5cc52e33b73 to your computer and use it in GitHub Desktop.
Save JimmyVV/81d6139c41bcde1b614ac5cc52e33b73 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /usr/local/src
wget -O openssl.tar.gz -c https://www.openssl.org/source/openssl-1.1.0.tar.gz
tar zxf openssl.tar.gz
mv openssl-1.1.0/ openssl
wget -c https://nginx.org/download/nginx-1.11.4.tar.gz
tar zxf nginx-1.11.4.tar.gz
cd nginx-1.11.4/
./configure --prefix=/usr/local/nginx \
--conf-path=/etc/nginx/nginx.conf \
--with-openssl=../openssl \
--with-http_v2_module \
--with-http_ssl_module \
--with-http_gzip_static_module
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment