首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法加载redis模块,RedisJSON

无法加载redis模块,RedisJSON
EN

Stack Overflow用户
提问于 2021-09-14 12:39:59
回答 1查看 468关注 0票数 3

按照指定的here编译RedisJson的源代码后,在project_root/target/release获得rejson.so文件,然后输入命令sudo redis-server --loadmodule /home/username/RedisJSON/target/release/rejson.so来加载redis模块。但是我收到了这个错误消息。

代码语言:javascript
复制
Server initialized
7666:M 14 Sep 2021 13:27:38.795 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
7666:M 14 Sep 2021 13:27:38.795 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
7666:M 14 Sep 2021 13:27:38.862 * <ReJSON> Exported RedisJSON_V1 API
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/redis-module-0.23.0/src/raw.rs:580:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted

请问我怎样才能把这个修好?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-09-15 05:41:37

RedisJSON需要Redis 6+,看起来你使用的是旧版本的Redis。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69177970

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档