From 1ebcc664bb41e8221ecbef6560ae0fe960e04875 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Fri, 18 Apr 2025 17:02:59 +0800 Subject: [PATCH] build: init directory. --- installer/start-all.sh | 2 ++ installer/start-redis.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/start-all.sh b/installer/start-all.sh index a2af53fa5..5362f0875 100644 --- a/installer/start-all.sh +++ b/installer/start-all.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$MAXKB_DB_HOST" = "127.0.0.1" ]; then /usr/bin/start-postgres.sh fi diff --git a/installer/start-redis.sh b/installer/start-redis.sh index fd0fa6e5f..2d3df9910 100644 --- a/installer/start-redis.sh +++ b/installer/start-redis.sh @@ -5,7 +5,7 @@ mkdir -p /opt/maxkb/data/redis 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\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\ndir /opt/maxkb/data/redis\nrequirepass "${REDIS_PASSWORD}"\n" > /opt/maxkb/conf/redis.conf fi echo "Redis starting..." redis-server /opt/maxkb/conf/redis.conf &