如何将 nginx 更新到最新的稳定版本?

saj*_*ini 3 linux nginx update

我使用的是 CentOS 6.6 Linux 服务器,并且安装了 nginx 1.7.3。如何将 Nginx 更新到最新的稳定版本(Nginx 1.8)?

小智 7

您可以按照此处所述为 CentOS 设置 nginx 存储库:http : //nginx.org/en/linux_packages.html#stable 或只需运行

yum install http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
Run Code Online (Sandbox Code Playgroud)

安装 repo 后运行:

yum install nginx
Run Code Online (Sandbox Code Playgroud)

它应该升级到最新的稳定版本