Installing the Nginx server in CentOS 7

Source: Internet
Author: User
Tags nginx server

Briefly describe how to install the Nginx server in CentOS 7

  1. Download the Nginx bundle (package) corresponding to the current system version

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

  2. Build Nginx's Yum repository

    # RPM-IVH nginx-release-centos-7-0.el7.ngx.noarch.rpm

  3. Download and install Nginx

    # yum Install Nginx

  4. Start Nginx Service

    Systemctl start Nginx

  5. Configuration

    The default configuration file under the/etc/nginx path, using this configuration has been able to properly run Nginx, if you need to customize, modify its nginx.conf and other files.

  6. Test

    Enter the IP of the machine that deploys the NGINX environment in the browser address bar, and if everything is OK, you should see the following words.

    Welcome to nginx!

    If you see this page, the Nginx Web server is successfully installed and working. Further configuration is required.

    For online documentation and the refer to nginx.org.
    Commercial support was available at nginx.com.

    Thank for using Nginx.

Installing the Nginx server in CentOS 7

Related Article

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.