标签:lru sed -- conf 服务 strong res 关闭 back
# maxmemory <bytes>
# 3.104GB
# redis-cli>info
# >used_memory:3254690792
maxmemory 3254857828
maxmemory-policy allkeys-lru
# 设为9,消耗更多CPU及时回收内存
maxmemory-samples 9
关闭服务:$> redis-cli shutdown
启动:$> ./redis-server redis.conf
# redis-cli>CONFIG SET maxmemory 3254857828
>CONFIG SET maxmemory-policy allkeys-lru
>CONFIG SET maxmemory-samples 9
标签:lru sed -- conf 服务 strong res 关闭 back
原文地址:https://www.cnblogs.com/wujinhong/p/12179135.html