Mastering Nginx

(Ron) #1
Chapter 1

[ 9 ]

Then install nginx by executing the following command:


sudo yum install nginx


Alternative instructions for installing an nginx-release package are available at
the preceding URL.


Debian


Install the NGINX signing key by downloading it from http://nginx.org/keys/


nginx_signing.key and adding it to the apt keyring:


sudo apt-key add nginx_signing.key


Append the nginx.org repository to the end of /etc/apt/sources.list:


vi /etc/apt/sources.list


deb http://nginx.org/packages/debian/ squeeze nginx


deb-src http://nginx.org/packages/debian/ squeeze nginx


Then install nginx by executing the following command:


sudo apt-get update


sudo apt-get install nginx


If your operating system does not include nginx in its list of available packages,


the version there is too old for what you would like to do, the packages at nginx.
org don't serve your needs, or you would like to use the "development" release


of NGINX, then compiling NGINX from source is the only other option.


Installing NGINX from source


NGINX downloads are available for two separate branches of NGINX code—stable


and development. The development branch is the one in which active development is


taking place. Here is where new features will be found and integrated before finding
their way into the stable branch. When a "development" version is released, it has


undergone the same QA and a similar set of functional tests as the stable branch,
so either branch may be used on production systems. The major difference between


the two branches lies in the support of third-party modules. The internal API may


change in the development release, whereas it stays the same on the stable branch, so
backward compatibility for third-party modules is only available for stable releases.

Free download pdf