1 Redis 全局配置
1.1 redis.conf启动配置
redis启动必须的配置文件redis.conf
./redis-server /path/to/redis.conf
1.2 units单位
不区分大小写,大小写不敏感,需要指定单位
# 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.
2 NETWORK
2.1 bind 绑定ip
注释掉bind 表示关闭本地访问,开启远程访问
protected-mode 由yes改为no 配合上面注释关闭保护模式,开启远程访问
# bind 127.0.0.1 -::1
protected-mode no
2.2 port端口
默认端口号 6379
# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is