nginx - installation


Ubuntu 12.04
sudo apt-get install nginx will install everything, but might not be the latest version.

get the latest:
Download the latest version from http://wiki.nginx.org/Install

install missing dependencies
sudo apt-get install zlib1g-dev
sudo apt-get install libpcre3 libpcre3-dev

build and install nginx
./configure --prefix=/opt/nginx
make
sudo make install

setup some permissions - optional
cd /opt
sudo chown -R root:opt nginx
sudo chmod -R g+w nginx
cd /opt/nginx

start/stop/relolad configuration
sbin/nginx -c conf/nginx.conf
sbin/nginx -s stop
sbin/nginx -s reload

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure