CentOS 6.10 安装 Nginx
一、安装先决条件
#yum -y install yum-utils
二、创建/etc/yum.repos.d/nginx.repo文件
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
三、安装Nginx
yum -y install nginx