Created
October 27, 2014 07:06
-
-
Save lsongdev/4a1e64a5b02293a93e37 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| LATEST_URL="http://nginx.org/download/nginx-1.6.2.tar.gz" | |
| sudo apt-get update | |
| sudo apt-get install libssl-dev | |
| sudo apt-get install zlibc zlib1g zlib1g-dev | |
| wget $LATEST_URL -O /tmp/nginx-latest | |
| git clone https://github.com/gnosek/nginx-upstream-fair.git | |
| tar -xzvf /tmp/nginx-latest | |
| cd /tmp/nginx-latest | |
| ./configure --with-http_ssl_module --add-module=/absolute/path/to/nginx-upstream-fair | |
| make | |
| sudo make install | |
| echo "All done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment