NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
ids
V2EX  ›  NGINX

请问 apt-get 方式安装的 nginx 如何添加第三方模块?

  •  
  •   ids · Jan 21, 2015 · 10031 views
    This topic created in 4129 days ago, the information mentioned may be changed or developed.

    使用的是apt-get方式安装的nginx,请问如何添加第三方模块?

    Supplement 1  ·  Jan 21, 2015
    对于编译过程中出现的错误,可以参考:http://kx.cloudingenium.com/linux/ubuntu/build-version-nginx/
    4 replies    2015-01-21 15:09:50 +08:00
    chon
        1
    chon  
       Jan 21, 2015   ❤️ 1
    编译一个新的Nginx,然后替换掉 /usr/sbin/nginx 。
    foxni
        2
    foxni  
       Jan 21, 2015   ❤️ 6
    apt-get source 得到源码
    nginx -V 得到安装时的编译参数

    加上新的模块重新编译。
    ids
        3
    ids  
    OP
       Jan 21, 2015
    @chon
    @foxni 感谢!又学到了一招。
    haozhang
        4
    haozhang  
       Jan 21, 2015
    安装一个新的ngx在/usr/local/中再符号链接到/usr/local/bin
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4520 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:30 · PVG 13:30 · LAX 22:30 · JFK 01:30
    ♥ Do have faith in what you're doing.