Skip to content

Instantly share code, notes, and snippets.

@kaelzhang
Last active June 30, 2017 10:16
Show Gist options
  • Save kaelzhang/99792c3baee0f3daadc0787c9df58ed6 to your computer and use it in GitHub Desktop.
Save kaelzhang/99792c3baee0f3daadc0787c9df58ed6 to your computer and use it in GitHub Desktop.
sudo chown -R `whoami` /usr/local
mkdir -p ~/installer
cd ~/installer
curl -O https://nginx.org/download/nginx-1.12.0.tar.gz
tar xJf nginx-1.12.0.tar.gz ./nginx-1.12.0
curl -O https://github.com/openresty/headers-more-nginx-module/archive/v0.32.tar.gz
tar xJf v0.32.tar.gz ./headers-more-nginx-module-0.32
curl -O https://www.openssl.org/source/openssl-1.1.0f.tar.gz
tar xJf openssl-1.1.0f.tar.gz ./openssl-1.1.0f
cd nginx-1.12.0
OPENSSL_VERSION=1.1.0f
HEADERS_MORE_VERSION=0.32
./configure --prefix=/usr/local --with-http_ssl_module --with-openssl=../openssl-$OPENSSL_VERSION --with-http_stub_status_module --with-http_v2_module --add-module=../headers-more-nginx-module-$HEADERS_MORE_VERSION
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment