Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

RHEL

Table of Contents

Preface 

...

  1. To set up the yum repository for RHEL 7, create the file named /etc/yum.repos.d/nginx.repo with the following contents:

    Code Block
    languagebash
    [nginx]
    name=nginx repo
    baseurl=http://nginx.org/packages/rhel/7/$basearch/
    gpgcheck=0
    enabled=1

    For RHEL 6 please change the 'baseurl' parameter in nginx.repo to:

    baseurl=http://nginx.org/packages/rhel/6/$basearch/

  2. Install nginx server:

    Code Block
    languagebash
    # yum install nginx
  3. Start nginx server by the following command:

    Code Block
    languagebash
    # service nginx start

...