apt 都是直接 install, yum还得添加源,好烦:
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
成功后就可以yum install nginx 了
apt 都是直接 install, yum还得添加源,好烦:
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
成功后就可以yum install nginx 了