V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
jylee
V2EX  ›  NGINX

有人用ngx_cache_purge模块的么?

  •  
  •   jylee · 2012-12-02 15:21:15 +08:00 · 7475 次点击
    这是一个创建于 4161 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在http://wiki.nginx.org/NginxChsCachePurge下载的,nginx版本1.2.5

    ./configure --user=www --group=www --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --conf-path=/etc/nginx/nginx.conf --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-pcre=../pcre-8.31 --with-http_sub_module --add-module=../substitutions4nginx-read-only --add-module=../ngx_cache_purge-1.2


    编译出错:

    src/http/modules/ngx_http_stub_status_module.c
    gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.31 -I objs -I src/http -I src/http/modules -I src/mail \
    -o objs/addon/substitutions4nginx-read-only/ngx_http_subs_filter_module.o \
    ../substitutions4nginx-read-only/ngx_http_subs_filter_module.c
    gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.31 -I objs -I src/http -I src/http/modules -I src/mail \
    -o objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o \
    ../ngx_cache_purge-1.2/ngx_cache_purge_module.c
    ../ngx_cache_purge-1.2/ngx_cache_purge_module.c: In function 'ngx_http_file_cache_purge':
    ../ngx_cache_purge-1.2/ngx_cache_purge_module.c:681: error: 'ngx_http_file_cache_node_t' has no member named 'length'
    make[1]: *** [objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o] Error 1
    make[1]: Leaving directory `/root/nginx-1.2.5'
    make: *** [build] Error 2


    - -这是什么原因呢
    3 条回复    1970-01-01 08:00:00 +08:00
    11138
        1
    11138  
       2012-12-02 15:30:05 +08:00   ❤️ 1
    @jylee 版本太旧了吧。还有最新的版本: ngx_cache_purge-1.6 见 http://labs.frickle.com/files/
    jylee
        2
    jylee  
    OP
       2012-12-02 15:36:35 +08:00
    @11138 - -ok了,我以为wiki首页是最新版。。。
    11138
        3
    11138  
       2012-12-02 15:43:27 +08:00
    @jylee nginx的wiki更新很慢,甚至都是几年前的内容了。下载源代码还是要去官方网站啊。例如ngx_cache_purge的项目主页是 http://labs.frickle.com/nginx_ngx_cache_purge/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1002 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:09 · PVG 05:09 · LAX 14:09 · JFK 17:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.