Closed
Description
I follow the requirements of Install redis-protobuf With Source Code.
system
- Ubuntu 19.10
- gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)
- protobuf-3.8.0-map-reflection
- Redis server v=5.0.5
redis.conf
################################## MODULES #####################################
# Load modules at startup. If the server is not able to load modules
# it will abort. It is possible to use multiple loadmodule directives.
#
# loadmodule /path/to/my_module.so
# loadmodule /path/to/other_module.so
loadmodule /usr/local/lib/rejson.so
loadmodule /usr/local/lib/libredis-protobuf.so --DIR /home/aicrobo/.redis/proto
redis logs
17878:M 05 Mar 2020 19:14:20.987 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
17878:M 05 Mar 2020 19:14:20.987 # Server initialized
17878:M 05 Mar 2020 19:14:20.987 # 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.
17878:M 05 Mar 2020 19:14:20.987 # 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.
17878:M 05 Mar 2020 19:14:20.987 # <ReJSON> JSON data type for Redis v1.0.4 [encver 0]
17878:M 05 Mar 2020 19:14:20.987 * Module 'ReJSON' loaded from /usr/local/lib/rejson.so
17878:M 05 Mar 2020 19:14:20.989 # Module /usr/local/lib/libredis-protobuf.so failed to load: /usr/local/lib/libredis-protobuf.so: undefined symbol: deflateInit2_
17878:M 05 Mar 2020 19:14:20.989 # Can't load module from /usr/local/lib/libredis-protobuf.so: server aborting
Help me, thank you!
Metadata
Metadata
Assignees
Labels
No labels