修复nginx漏洞的方法
首先,在计算机中卸载nginx;
yum remove nginx
nginx卸载好后,重新下载nginx包;
wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
nginx包下载好后,为nginx建立一个yum仓库;
rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum仓库建立好后,重新安装nginx;
yum install nginx
最后,nginx重新安装后,启动nginx服务即可;
systemctl start nginx