最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
VPS服务器使用apt-get方式升级nginx(ubuntu/debian)
时间:2022-06-30 18:48:12 编辑:袖梨 来源:一聚教程网
打开 /etc/apt/sources.list 添加下面两行
Ubuntu :
deb http://nginx.org/packages/ubuntu/ lucid nginx
deb-src http://ng*in*x*.org/packages/ubuntu/ lucid nginx
debian:
deb http://n*gin*x.org*/packages/debian/ squeeze nginx
deb-src http://n*gin*x.org*/packages/debian/ squeeze nginx
更新包、安装nginx
apt-get update
apt-get install nginx
提示:
Configuration file `/etc/nginx/nginx.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process www.111com.net to examine the situation
The default action is to keep your current version.
*** nginx.conf (Y/I/N/O/D/Z) [default=N] ?
这时输入N,保留之前的nginx.conf配置。
完成安装后,重启nginx
service nginx restart
完成更新,可以输入以下命令查看当前版本。
nginx -v
相关文章
- boss智能门锁如何设置密码 04-29
- 王者荣耀世界橘右京厉害吗 04-29
- 《青云劫攻略天赋技能,成就无敌仙侠》(解锁潜能,掌握绝学,成就仙侠传奇) 04-29
- 桃源深处有人家藏经室悟证一至七日通关答案 04-29
- 怎么击败《Saros》中的“破碎崛起”先知 Boss 04-29
- 宫小攻略技能推荐2023(玩转宫小,轻松游戏攻略指南) 04-29