vim /etc/yum.repos.d/nginx.repo
1 [nginx] 2 3 name=nginx repo 4 baseurl=http://nginx.org/packages/centos/osversion/$basearch/ 5 gpgcheck=0 6 enabled=1
yum install nginx 即可安装
vim /etc/yum.repos.d/nginx.repo
1 [nginx] 2 3 name=nginx repo 4 baseurl=http://nginx.org/packages/centos/osversion/$basearch/ 5 gpgcheck=0 6 enabled=1
yum install nginx 即可安装
转载于:https://www.cnblogs.com/paipaita/archive/2012/11/20/install_nginx.html