redis5开启bloomfilter插件

下载编译安装Rebloom插件
wget https://github.com/RedisLabsModules/rebloom/archive/v1.0.3.tar.gz
解压 tar zxvf v1.0.3.tar.gz
cd rebloom-1.0.3
make
redis服启动添加对应参数
rebloom_module="/usr/local/rebloom/rebloom.so"
daemon --user ${REDIS_USER-redis} "$exec $REDIS_CONFIG --loadmodule $rebloom_module --daemonize yes --pidfile $pidfile"

重启redis服务

测试命令
bf.add test aaa
命令成功说明开启成功

猜你喜欢

转载自blog.51cto.com/529517/2348562