Difference between revisions of "CentOS 7.x Install nginx"

From Notes_Wiki
(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>...")
(No difference)

Revision as of 16:54, 14 March 2019

<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