CentOS 7.x Install nginx

From Notes_Wiki
Revision as of 15:45, 28 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > Web servers > nginx > CentOS 7.x Install nginx

To install nginx use:

  1. Create /etc/yum.repos.d/nginx.repo' with following contents:
    [nginx]
    name=nginx repo
    baseurl=http://nginx.org/packages/centos/7/$basearch/
    gpgcheck=0
    enabled=1
  2. Install nginx from repository using
    yum -y install nginx



Home > CentOS > CentOS 7.x > Web servers > nginx > CentOS 7.x Install nginx