diff --git a/redis/redis.conf b/redis/redis.conf index cfa2a4d..fb6d7bb 100644 --- a/redis/redis.conf +++ b/redis/redis.conf @@ -1,6 +1,6 @@ # --- 基础网络配置 --- # 生产环境务必绑定内网 IP,不要仅监听 0.0.0.0 -bind 127.0.0.1 +bind 0.0.0.0 port 6379 tcp-backlog 511 timeout 0 @@ -18,7 +18,7 @@ rename-command DEBUG "" daemonize no pidfile /var/run/redis_6379.pid loglevel notice -logfile /data/redis.log +logfile /var/log/redis.log databases 16 # --- RDB 持久化配置 ---