修復nginx漏洞的方法
1.首先,在計算機中卸載nginx;
yum remove nginx
2.nginx卸載好后,重新下載nginx包;
wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
3.nginx包下載好后,為nginx建立一個yum倉庫;
rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
4.yum倉庫建立好后,重新安裝nginx;
yum install nginx
5.最后,nginx重新安裝后,啟動nginx服務即可;
systemctl start nginx