From df6adb1cd29854be1151da8dc6d094c24c6b4ac4 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 3 Jul 2025 15:15:34 +0800 Subject: [PATCH] build: update redis.conf. --- installer/start-redis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/start-redis.sh b/installer/start-redis.sh index c7ebbae1d..fa636126b 100644 --- a/installer/start-redis.sh +++ b/installer/start-redis.sh @@ -1,11 +1,12 @@ #!/bin/bash mkdir -p /opt/maxkb/data/redis +mkdir -p /opt/maxkb/logs if [ ! -f /opt/maxkb/conf/redis.conf ]; then mkdir -p /opt/maxkb/conf touch /opt/maxkb/conf/redis.conf - printf "bind 0.0.0.0\nport 6379\ndatabases 16\nmaxmemory 1G\nmaxmemory-policy allkeys-lru\ndir /opt/maxkb/data/redis\nrequirepass "${REDIS_PASSWORD}"\n" > /opt/maxkb/conf/redis.conf + printf "bind 0.0.0.0\nport 6379\ndatabases 16\nmaxmemory 1G\nmaxmemory-policy allkeys-lru\nloglevel warning\nlogfile /opt/maxkb/logs/redis.log\ndir /opt/maxkb/data/redis\nrequirepass "${REDIS_PASSWORD}"\n" > /opt/maxkb/conf/redis.conf fi redis-server /opt/maxkb/conf/redis.conf \ No newline at end of file