[Linux] PHP programmer to play the Linux series-the Nginx website installation nginx

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.