Home > Backend Development > PHP Tutorial > Centos7 install nginx

Centos7 install nginx

WBOY
Release: 2016-07-29 09:12:16
Original
1202 people have browsed it

Methods/steps

  1. Download the nginx package (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. Establish nginx yum warehouse

    # 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 is under the /etc/nginx path. You can use this configuration Run nginx correctly; if you need to customize it, just modify the nginx.conf and other files under it.

  6. Test

  7. Enter the IP of the machine where the nginx environment is deployed in the browser address bar. If everything is normal, you should see the following content.

    Centos7 install nginx

The above introduces the installation of nginx on Centos7, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template