VPS侦探论坛

 找回密码
 注册
查看: 8800|回复: 4

LNMP Nginx 一键升级到8.54最新稳定版 转

[复制链接]
发表于 2011-2-6 16:51:08 | 显示全部楼层 |阅读模式

LNMP Nginx 一键升级到8.54最新稳定版 来源全球主机交流论坛solar
LNMP Nginx 一键升级到8.54最新稳定版
手上VPS多,一个个升级太麻烦,写了几行代码,直接粘帖到SSH, 就行了。
复制内容到剪贴板
代码:
  cd /root/
    wget http://nginx.org/download/nginx-0.8.54.tar.gz
    tar xzf nginx-0.8.54.tar.gz
    cd nginx-0.8.54
    ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6
    make
    mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
    cp -r objs/nginx /usr/local/nginx/sbin/nginx
    nginx -t

    kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
    sleep 15
    kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
    ls
适用于军歌的LNMP
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-9 01:44:16 | 显示全部楼层


升级成功了 谢谢
不过我有一个错误要指正哦

升级前必须 /root/lnmp stop

否则 自己测试吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-2-9 17:58:09 | 显示全部楼层

我的没有/root/lnmp stop就升级了    不过好像一样行
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-10 09:08:52 | 显示全部楼层

回复 3# 的帖子




不用stop,nginx是可以平滑升级的。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-2-11 15:37:00 | 显示全部楼层

呵呵
分享一个nginx升级到最新版 0.9.4的教程:

来自  IT飞逝  http://itfis.com/post-215.html

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-19 09:22 , Processed in 0.026890 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表