添加源安装Nginx启动Nginx并设置开机自动运行ip浏览查看效果 添加源rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 安装Nginxyum install -y nginx 启动Nginx并设置开机自动运行systemctl start nginx.service systemctl enable nginx.service nginx -s reload #重启 ip浏览查看效果