IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [nginx][更新][升级]Ubuntu 16.04 下升级 nginx
猫猫草
post 2018-04-25 11:15:52, Wed
Post #1


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2



代码
# apt-get install software-properties-common
# add-apt-repository ppa:nginx/stable
# apt-get update
# apt-get dist-upgrade


然后就可以安装/升级到新版本了
如果是升级安装,注意提前备份 nginx 配置目录,且升级后需要在 nginx.conf 中确保存在以下行
代码
include /etc/nginx/modules-enabled/*.conf;


之后就可以正常使用新版本的配置内容了
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2024-10-31 15:35