CentOS7下升级nginx到新版本v1.12.1修复CVE-2017-7529漏洞
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum list | grep nginx #看到有最新的1.12.1版本在yum列表中了
yum update nginx -y
nginx -v #nginx version: nginx/1.12.1
nginx -t
systemctl reload nginx
参考
https://www.liberiangeek.net/2014/07/enable-nginxs-repository-install-nginx-centos-7/
https://www.idaima.com/a/17439.html
方法二:
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum erase nginx
yum install nginx