有人用ngx_cache_purge模块的么?
- 0次
- 2021-05-31 10:39:12
- idczone
在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-modul国外服务器e=../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
- -这是什么原因呢
版本太旧了吧。还有最新的版本: ngx_cache_purge-1.6 见 http://labs.frickle.com/files/
- -ok了,我以为wiki首页是最新版。。。
nginx的wiki更新很慢,甚至都是几年前的内容了。下载源代码还是要去官方网站啊。例如ngx_cache_purge的项目主页是 http://labs.frickle.com/nginx_ngx_cache_purge/