gpt4 book ai didi

linux - 无法加载redis模块,RedisJSON

转载 作者:行者123 更新时间:2023-12-05 03:37:42 24 4
gpt4 key购买 nike

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

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

请问我该如何解决这个问题?

最佳答案

RedisJSON 需要 Redis 6+,看来你运行的是旧版本的 Redis。

关于linux - 无法加载redis模块,RedisJSON,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69177970/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com