Use the YUM source on the official Nginx website to install Nginx

Source: Internet
Author: User

Use the YUM source on the official Nginx website to install Nginx

The first method is simple, that is, to use the official nginx yum source. We use cat to view the nginx. repo file. The command is as follows:

Cat/etc/yum. repos. d/nginx. repo

The content of the nginx. repo file is as follows:

[Nginx]

Name = nginx repo

Baseurl = http://nginx.org/packages/centos/?releasever/?basearch/

Gpgcheck = 0

Enabled = 1

The second method is to use createrepo to build your own YUM source. This method is even better. We can download the suitable rpm package on the official nginx website and add it to our YUM source, in a custom environment with strict requirements for automated O & M, most O & M personnel choose this method.

After installing nginx in this way, you will find that it is much easier to install Nginx than the source code. For example, if nginx is automatically allocated to the user who runs nginx: nginx, nginx logs are automatically stored in/var/log/nginx, and the working directory is/etc/nginx.

-------------------------------------- Split line --------------------------------------

Deployment of Nginx + MySQL + PHP in CentOS 6.2

Build a WEB server using Nginx

Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Performance Tuning for Nginx in CentOS 6.3

Configure Nginx to load the ngx_pagespeed module in CentOS 6.3

Install and configure Nginx + Pcre + php-fpm in CentOS 6.4

Nginx installation and configuration instructions

Nginx log filtering using ngx_log_if does not record specific logs

-------------------------------------- Split line --------------------------------------

Nginx details: click here
Nginx: click here

This article permanently updates the link address:

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.