如何在 debian 7 上将 nginx 从 1.2 升级到 1.6

Aym*_*chi 7 nginx upgrade

我浏览了整个网络,但找不到任何东西!
我修改了,sources.list但服务器卡在 nginx 1.2 ,我不知道该怎么做,请帮忙

mvi*_*lar 11

您应该将 wheezy-backports 添加到您的 /etc/apt/sources.list:

deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free
Run Code Online (Sandbox Code Playgroud)

然后在控制台上:

aptitude update
aptitude -t wheezy-backports install nginx
Run Code Online (Sandbox Code Playgroud)