Last active
March 6, 2018 16:25
-
-
Save toddsby/d3d68f3953bd00c9f0976f822b1ec016 to your computer and use it in GitHub Desktop.
osx mavericks - build nginx 1.10.3 from source - with http2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Build Nginx 1.10.3 on Mac OS X Mavericks (10.9) | |
# This script was created by Kevin Worthington - http://kevinworthington.com/ - 28 October 2013 | |
# Original article at: http://kevinworthington.com/nginx-for-mac-os-x-yosemite-in-2-minutes/ | |
# Modifed by Drew Toddsby - 2 February 2017 | |
# This useful script is provided for free, but without warranty. Use at your own risk. | |
# By downloading this script you agree to the terms above. | |
# create, then go into the build directory | |
sudo mkdir -p /usr/local/src | |
cd /usr/local/src | |
# download, build, and install nginx | |
cd nginx-1.10.3 | |
sudo ./configure --prefix=/usr/local --with-cc-opt="-Wno-deprecated-declarations" --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-pcre=../pcre-8.40 | |
sudo make | |
sudo make install | |
# start nginx | |
sudo /usr/local/sbin/nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added gzip_static module