为了账号安全,请及时绑定邮箱和手机立即绑定

开启activedefrag参数报错

redis-server redis.conf *** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 1352 >>> 'activedefrag yes' active defrag can't be enabled without proper jemalloc support 出现这种问题怎么办

正在回答

1 回答

127.0.0.1:6379> config set activedefrag yes
(error) ERR Active defragmentation cannot be enabled: it requires a Redis server compiled with a modified Jemalloc like the one shipped by default with the Redis source distribution

So I guess what you are saying is that what I was trying basically isn't possible. I'd need to install Redis completely from source rather than using a yum repo like EPEL or Remi?

I presume the only method that will work is to completely remove Redis and then build all from source? The reason I want to avoid that is because I want to have the active defrag enabled on a production server. If I need to manually upgrade redis each time then I will obviously have more down time and there is a greater possibility for things to go wrong (even if I do test the upgrade via test server) Where as updating via YUM has its clear advantages - assuming you have an up to date repo


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Redis5.0之12项新特性
  • 参与学习       7249    人
  • 解答问题       20    个

解剖 Redis5.0 的12项新特性。

进入课程

开启activedefrag参数报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信