1.PHP programmer to play Linux series-How to install using CentOS
2.PHP programmer to play Linux series-LNMP Environment building
3.PHP Programmer play Linux series-Build FTP code development environment
4.PHP Programmer play Linux series-backup restore MySQL
5.PHP Programmer play Linux series-automatic backup with SVN
How to install Nginx in the simplest way, I found n many methods only after the discovery or Nginx official website method is the simplest AH. I'm here to handle the installation of the official website.
Installing Nginx in CentOS
Of course, the installation of the package is the simplest, the Nginx official website also provides the way to install the package. First go to this directory /etc/yum.repos.d/, and then create a new Nginx.repo Warehouse file, this file name can be taken, The suffix must be. Repo.
Modify the middle of the 6 according to your current CentOS version number.
[Nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/6/$basearch/gpgcheck=0
You can then use the command yum install Nginx, one-click Installation Nginx, and is the latest stable version of the installation
Installing Nginx in Ubuntu
Nginx also provides the Deb package, enter this directory /etc/apt, edit sources.list, add the following two lines
Modify the trusty based on your Ubuntu version
12.04 |
Precise |
14.04 |
Trusty |
16.04 |
Xenial |
16.10 |
Yakkety |
Deb http://nginx.org/packages/ubuntu/trusty nginx deb-src http://nginx.org/packages/ubuntu/trusty nginx
Execute the installation command, you will be alerted to an unsafe warning, you can not control it.
sudo apt-get update sudo apt-get install Nginx
Installing Nginx in Windows
Go to the official website download page, download the latest stable version directly, Nginx official website
After unpacking, open the CMD window, CD into the folder where the Nginx.exe is located, execute Nginx
[Linux] PHP programmer to play the Linux series-the Nginx website installation nginx