有人用ngx_cache_purge模块的么?

2012-12-02 15:21:15 +08:00
 jylee
在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


- -这是什么原因呢
7478 次点击
所在节点    NGINX
3 条回复
11138
2012-12-02 15:30:05 +08:00
@jylee 版本太旧了吧。还有最新的版本: ngx_cache_purge-1.6 见 http://labs.frickle.com/files/
jylee
2012-12-02 15:36:35 +08:00
@11138 - -ok了,我以为wiki首页是最新版。。。
11138
2012-12-02 15:43:27 +08:00
@jylee nginx的wiki更新很慢,甚至都是几年前的内容了。下载源代码还是要去官方网站啊。例如ngx_cache_purge的项目主页是 http://labs.frickle.com/nginx_ngx_cache_purge/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/53889

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX