Special note: In the absence of any introduction to the background, direct hair How to install the software is bullying!
This article refers to the installation introduction provided by Nginx.org, Link: nginx.org "Installing Nginx" page
In different operating systems, the way to install Nginx is also different, even in the same operating system, different versions of the installation of the same way. Extra attention is needed here. This is just a description of the installation under Linux.
Nginx packages can be used by the following schemas and versions:
Rhel/centos
version |
Support Platform |
5.x |
X86_64,i386 |
6.x |
X86_64,i386 |
7.x |
x86_64 |
Deban
version |
Code Name |
Support Platform |
7.x |
Wheezy |
X86_64,i386 |
8.x |
Jessie |
X86_64,i386 |
Ubuntu
Version |
codename |
Supported Platforms |
12.04 |
Precise |
x86_64, i386 |
14.04 |
Trusty |
x86_64, i386, aarch64/arm64 |
15.04 |
Vivid |
x86_64, i386 |
15.10 |
Wily |
x86_64, i386 |
Sles
Version |
Supported Platforms |
12 |
x86_64 |
In the CentOS architecture, in order to be able to install with Yum, it can be installed in the following ways:
Stable version Installation
Need to populate the stores of Yum, construct a file called "/etc/yum.repos.d/nginx.repo", the file needs to fill in the following:
[nginx]name=nginx repobaseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/gpgcheck=0enabled=1
Replace the OS with Rhel or CentOS and replace the osrelease with 5, 6, or 7, respectively, for the 5.x, 6.x, and 7.x versions.
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Nginx nix under the installation method, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.