yum安装Nginx的方法 2018-08-30 Nginx, 笔记 yum安装Nginx的方法 添加源 1sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 安装Nginx 1sudo yum install -y nginx 启动Nginx并设置开机自动运行 12sudo systemctl start nginx.servicesudo systemctl enable nginx.service