nginx

Installation in RHEL

Find Out RedHat Version:(I got Red Hat Enterprise Linux Server release 7.2 (Maipo))

cat /etc/redhat-release

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

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

It is necessary to replace $releasever with either 5 (for 5.x) , 6 (for 6.x) or 7 (for 7.x), depending upon OS version. This time,ther version is 7.2, so the file:

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

Then:

sudo yum install nginx

where is the conf file:

sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Setting Up a Simple Proxy Server

results matching ""

    No results matching ""