修复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
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>