To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo
and paste one of the configurations below:
CentOS:
1 [nginx] 2 name=nginx repo 3 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ 4 gpgcheck=0 5 enabled=1 6 7 yum install -y nginx