Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (11 sloc) 353 Bytes
DIR=`pwd`
cd /tmp
curl -O http://nginx.org/download/nginx-1.1.6.tar.gz
tar zxf nginx-1.1.6.tar.gz
cd nginx-1.1.6
./configure --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module
make && sudo make install
rm -Rf /tmp/nginx-1.1.6/
cd $DIR
sudo cp nginx /etc/init.d/
sudo update-rc.d nginx defaults