admin avatar

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

🕐 by admin

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

1
2
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
Ubuntu 就用下面两行
1
2
deb http://nginx.org/packages/ubuntu/ lucid nginx
deb-src http://nginx.org/packages/ubuntu/ lucid nginx

然后 apt-get install nginx 就可以

💘 相关文章

评论

共1条关于"用apt-get 升级 nginx (debian6/Ubuntu)"的评论

zxczxc avatar
#1 zxczxc 回复

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

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.5 Processed in 1ms