编译安装的openresty 1.19.9.1想升级到openresty1.21.4.2,有官方升级文档或者参考链接吗? @zhuizhuhaomeng

    你怎么编译的 1.19.9.1 同样方法编译 1.21.4.2 覆盖原来, 重启 nginx

    selboo
    比如openresty 1.19.9.1编译安装操作如下:
    tar zxvf openresty-1.19.9.1.tar.gz
    cd openresty-1.19.9.1
    ./configure --prefix=/usr/local/openresty --with-http_stub_status_module --with-http_gzip_static_module --with-luajit
    make
    make install

    平滑升级到openresty1.21.4.2,
    tar zxvf openresty-1.21.4.2.tar.gz
    cd openresty-1.21.4.2
    ./configure --prefix=/usr/local/openresty --with-http_stub_status_module --with-http_gzip_static_module --with-luajit
    make

    平滑升级的话,不执行make install吧?
    之后拷贝objs下生成的nginx覆盖/usr/local/openrestynginx/sbin/nginx,不执行make install的话,/usr/local/openresty目录下的LuaJIT、lualib需要操作什么吗?

      需执行 make install

      /usr/local/openresty/nginx/sbin/nginx -t
      /usr/local/openresty/nginx/sbin/nginx -s reload

      selboo 你好,执行 make install的话,会将原来的配置文件覆盖吗?会中断openresty服务吗?满足平滑升级的需求吗?

        zhuizhuhaomeng 你好,使用官方预编译的 OpenResty包做平滑升级,先做备份后在平滑升级,有官方升级文档或者参考链接吗?

          Write a Reply...