编译安装的openresty 1.19.9.1想升级到openresty1.21.4.2,有官方升级文档或者参考链接吗? @zhuizhuhaomeng
请问编译安装的openresty如何升级呢
你怎么编译的 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
我们推荐使用官方预编译的 OpenResty包。如果要自己编译,可以参考官方的编译方法
https://github.com/openresty/openresty-packaging/blob/master/rpm/SPECS/openresty.spec#L193
这里的是rpm 软件包中的配置命令。该软件包是从 openresty.org 中下载的。
zhuizhuhaomeng 你好,使用官方预编译的 OpenResty包做平滑升级,先做备份后在平滑升级,有官方升级文档或者参考链接吗?