nginx(不关闭服务)平滑升级和加载新的功能模块

    技术2022-07-10  88

    直接来干货了,默认你已经装好了 gcc make pcre-devel openssl-devel 四个软件包

    tar -xf nginx的压缩包 cd 进入压缩包解压的目录 ./configure \ --with-http_ssl_module \ --with-stream \ make mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old cp objs/nginx /usr/local/nginx/sbin/ make upgrade /usr/local/nginx/sbin/nginx -V 查看是否更新和模块的加载情况
    Processed: 0.035, SQL: 9