mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
build: update redis.conf.
This commit is contained in:
parent
0b27836ccb
commit
df6adb1cd2
|
|
@ -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
|
||||
Loading…
Reference in New Issue