Install Nginx and CentOS 7 yum

Source: Internet
Author: User

Install Nginx and CentOS 7 yum

1. Add Nginx to YUM Source

Add the CentOS 7 Nginx yum resource library, open the terminal, and run the following command:

Sudo rpm-Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2. Install Nginx

On your CentOS 7 server, use the yum command to obtain from the Nginx source server to install Nginx:

Sudo yum install-y nginx

Nginx will be installed on your CentOS 7 server.

Appendix: nginx official for different systems have prepared a lot of packages, you can go to this address in turn to find the http://nginx.org/packages/

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.