Skip to content

Instantly share code, notes, and snippets.

@dukex
Last active December 20, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dukex/6172505 to your computer and use it in GitHub Desktop.
Save dukex/6172505 to your computer and use it in GitHub Desktop.
Debian/Ubuntu nginx
$ 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