Redis 服务性能优化

redis密码,留空代表没有设置密码

requirepass xxx

最大使用内存:maxmemory

#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf

# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
# 1gb => 1024*1024*1024 bytes
#
# units are case insensitive so 1GB 1Gb 1gB are all the same.
maxmemory 6442450944

最大连接数:maxclients

maxclients 102400
作者:Jeebiz  创建时间:2023-01-13 09:26
最后编辑:Jeebiz  更新时间:2024-08-16 11:14