openresty / redis2-nginx-module

Nginx upstream module for the Redis 2.0 protocol
http://wiki.nginx.org/HttpRedis2Module
901 stars 142 forks source link

[emerg] 14574#0: unknown directive "redis2_query" in /usr/local/openresty/nginx/conf/nginx.conf #58

Closed panguangyu closed 5 years ago

panguangyu commented 5 years ago

When i try to use HttpRedis2Module in Openresty and try to reload my nginx server in Openresty, it occurred an error : "unknown directive "redis2_query" in /usr/local/openresty/nginx/conf/nginx.conf".

Why the directive of "redis2_query" is unknown in Openresty ? My Openresty's Version is 1.13.6.2 .

I sure that my compile configuration doesn't have --without-http_redis2_module.

Here is my nginx.conf partial Configuration :

location /http2redisget { set $key hello; redis2_query get $key; redis2_pass 127.0.0.1:6379; }

panguangyu commented 5 years ago

i had solved this problem : https://blog.csdn.net/panguangyuu/article/details/88872862

the problem is my Nginx Server doesn't reload normally