RHEL
Table of Contents |
---|
Preface
...
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 language bash [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/Install nginx server:
Code Block language bash # yum install nginx
Start nginx server by the following command:
Code Block language bash # service nginx start
...