yum install -y epel-release yum update -y rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm yum install -y nginx nginx -V systemctl enable nginx
nginx 启动
nginx -t 检查配置文件
nginx -s stop 停止
nginx -s reload 重启