Accept cookies for analytics, social media, and advertising, or learn more and adjust your preferences. These cookies are on by default for visitors outside the UK and EEA. Privacy Notice.
Go to the Install Page of this wiki to download NGINX. Alternatively, here is a link to the English download page and the original Russian download page.
After extracting the source, run these commands from a terminal:
./configure
make
sudo make install
By default, NGINX will be installed in /usr/local/nginx
. You may change this and other options with the Installation and Compile-Time Options.
Start the server by running /usr/local/nginx/sbin/nginx
as root.
After editing the configuration file at /usr/local/nginx/conf/nginx.conf
to your liking, you can reload the configuration with:
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
The location of nginx.pid might be different on your machine.
For Ubuntu, it is located at /var/run/nginx.pid
See also