zoukankan      html  css  js  c++  java
  • nginx添加新的模块

    在nginx添加新的模块

    安装nginx 此处省略

    查看当前的nginx模块

    [root@localhost nginx-1.13.9]# /usr/local/nginx/sbin/nginx -V
    nginx version: nginx/1.13.9
    built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
    configure arguments: --prefix=/usr/local/nginx --with-http_secure_link_module --with-http_stub_status_module

    在最后一行nginx后面是当前已经加载的模块

    业务需要原来的模块已经不能满足,增加新的模块

    进入安装目录

    cd nginx-1.13.9/

    ./configure --prefix=/usr/local/nginx --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_image_filter_module --with-http_slice_module --with-mail --with-threads --with-file-aio --with-stream --with-mail_ssl_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-pcre  --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module  && make 

    开始编译新加入的模块这里不需要 make install 如果你想覆盖掉 就在 && make 后面加上 make install

    在当前目录下 用新的nginx 覆盖旧的nginx文件(在nginx关闭的情况下覆盖,如果不关闭会报错设备正忙)

    cp objs/nginx /usr/local/nginx/sbin/nginx

    查看nginx当前的新加入的模块

    [root@localhost nginx-1.13.9]# /usr/local/nginx/sbin/nginx -V
    nginx version: nginx/1.13.9
    built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
    built with OpenSSL 1.0.2k-fips 26 Jan 2017
    TLS SNI support enabled
    configure arguments: --prefix=/usr/local/nginx --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_image_filter_module --with-http_slice_module --with-mail --with-threads --with-file-aio --with-stream --with-mail_ssl_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-pcre --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module

    加入新的模块成功

    点一杯奶茶

  • 相关阅读:
    Delphi的Colorbox不需要系统那么多颜色,只想自定义显示其中几个,怎么做?
    aName:array[0..31] of WideChar;//编译提示检测到错误类EAccessViolation//没有初始化
    ACCESS2003替换数据中的通配符 本身的办法
    startActivityForResult和setResult详解
    关于android和java环境和编译的一些基本知识
    onWindowFocusChanged重要作用
    线程取消(pthread_cancel)
    通过给程序里嵌入manifest,使得程序运行时弹出UAC窗口
    c#实现打印
    access导入mssql,access自动编号编号的问题
  • 原文地址:https://www.cnblogs.com/qingyuanyuanxi/p/8489929.html
Copyright © 2011-2022 走看看