将nginx放到yum repro库中 进行yum安装
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install -y nginx
启动
systemctl start nginx.service
将nginx放到yum repro库中 进行yum安装
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install -y nginx
启动
systemctl start nginx.service