centos 7 版本升级nginx

1、首先下载对应最新版nginx

wget  http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2、然后就是建立yum仓库

rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm

3、卸载系统原有的旧版的nginx

yum remove nginx 

4、下载安装nginx

yum install nginx

5、启动nginx

systemctl start nginx
posted @ 2017-05-15 15:02  kimingw  阅读(4324)  评论(0编辑  收藏  举报