用apt-get 升级 nginx (debian6/Ubuntu)

By admin at 2013-11-01 20:19 • 1985次点击
admin

在一个小的vps,默认的nginx 版本太旧,要升级为最新稳定版本
打开 /etc/apt/sources.list 添加下面两行


deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx

Ubuntu 就用下面两行

deb http://nginx.org/packages/ubuntu/ lucid nginx
deb-src http://nginx.org/packages/ubuntu/ lucid nginx

然后
apt-get install nginx
就可以


apt, get, nginx, debian


****** 此回复已被管理员屏蔽****

zxczxc at 2013-11-03 08:56
1
登录 后发表评论