CentOS 7.x Install nginx

From Notes_Wiki
Revision as of 16:54, 14 March 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Install ngnix">CentOS_7.x_nginx|Nginx</yambe:breadcrumb> =CentOS 7.x install nginx= To install nginx use: #Create <tt>/etc/yum.repos.d/nginx.repo</tt>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Install ngnix">CentOS_7.x_nginx|Nginx</yambe:breadcrumb>

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