Last active
December 20, 2015 17:59
-
-
Save dukex/6172505 to your computer and use it in GitHub Desktop.
Debian/Ubuntu nginx
This file contains 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
$ sudo apt-get install libpcre3 libpcre3-dev libssl-dev | |
$ cd /tmp | |
$ wget http://nginx.org/download/nginx-1.2.9.tar.gz | |
$ tar xvzf nginx-1.2.9.tar.gz | |
$ cd nginx-1.2.9$ ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-cc-opt='-Wno-error' --with-http_stub_status_module | |
$ make && sudo make install | |
$ sudo wget https://gist.github.com/dukex/5881970/raw/985fbfaf2c0b496bd4ad28896c41008fa334e979/nginx -O /etc/init.d/nginx | |
$ chmod +x /etc/init.d/nginx | |
$ sudo service nginx start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment