redis2-nginx-module icon indicating copy to clipboard operation
redis2-nginx-module copied to clipboard

redis2-nginx-module Module installation problem

Open yangyaoweng opened this issue 10 years ago • 2 comments

My system is ubuntu14.04 apt-get install libreadline-dev libpcre3-dev libssl-dev perl build-essential I installed these options ./configure --prefix=/opt/openresty --without-http_redis2_module --without-http_redis_module --without-lua_resty_redis --without-lua_cjson --with-http_iconv_module --without-http_set_misc_module The installation process without any problems,Nginx is running normally,Can parse lua But can't identify redis2 unknown directive "redis2_query" On the Internet looking for a long time didn't find the solution,Redis can run normally I install ngx_openresty-1.7.4.1

yangyaoweng avatar Feb 04 '15 08:02 yangyaoweng

@yangyaoweng It doesn’t sound like you actually installed this module (see --without-http_redis2_module). Have another look at https://github.com/openresty/redis2-nginx-module#installation .. you need to add --add-module=/path/to/redis2-nginx-module to compile it with redis2 support.

hacfi avatar Feb 04 '15 11:02 hacfi

Thank you for your answer; When I was in installation of basic ningx can normal use; ./configure --prefix=/opt/nignx --add-module=/usr/local/redis2-nginx-module-master Can used after installation


I now is to use openresty;It contains these files; http://openresty.org/ You can't use after installation

yangyaoweng avatar Feb 05 '15 02:02 yangyaoweng