首页 > 代码库 > OpenResty 平滑升级

OpenResty 平滑升级

1、先去下载新版,当前最新版为“ngx_openresty-1.7.0.1”

2、开始升级

tar zxvf ngx_openresty-1.7.0.1.tar.gzcd ngx_openresty-1.7.0.1./configure --prefix=/usr/local/openresty/ --with-http_stub_status_module --add-module=/usr/local/nginx_upload_module-2.2.0 --with-luajitmakemv /usr/local/openresty/nginx/sbin/nginx /usr/local/openresty/nginx/sbin/nginx.oldcp /usr/local/software/ngx_openresty-1.7.0.1/build/nginx-1.7.0/objs/nginx /usr/local/openresty/nginx/sbin/service nginx restart/usr/local/openresty/nginx/sbin/nginx -V