[nginx]name=nginx repobaseurl=<a href=""http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/">
http://nginx.org/packages/mainline/centos/7/$basearch/gpgcheck=0enabled=1
cat >> /etc/yum.repos.d/nginx.repo << EOF
[nginx]name=nginx repobaseurl="
http://nginx.org/packages/mainline/centos/6/$basearch/"gpgcheck=0enabled=1
EOF
Replace “
OS
” with “
rhel
” or “
centos
”, depending on the distribution used, and “
OSRELEASE
” with “
5
”, “
6
”, or “
7
”, for 5.x, 6.x, or 7.x versions, respectively.