setup.sh 360 B

123456789101112131415
  1. #!/bin/bash
  2. #wget https://raw.githubusercontent.com/redis/redis/unstable/redis.conf -O $(pwd)/redis.conf
  3. #允许通知过期事件
  4. sed -i 's/notify-keyspace-events ""/notify-keyspace-events Exg/g' $(pwd)/redis.conf
  5. #允许所有人连接
  6. sed -i 's/bind 127.0.0.1 -::1/bind * -::*/g' $(pwd)/redis.conf
  7. #重启
  8. docker-compose down ; docker-compose up -d