redis.sh
This commit is contained in:
parent
0b6a044e2c
commit
89200b801a
|
@ -20,12 +20,20 @@ mkdir -p /opt/docker-run/redis/conf
|
||||||
|
|
||||||
echo "创建Redis配置文件"
|
echo "创建Redis配置文件"
|
||||||
touch /opt/docker-run/redis/conf/redis.conf
|
touch /opt/docker-run/redis/conf/redis.conf
|
||||||
tee /opt/docker-run/redis/conf/redis.conf <<-'EOF'
|
cat <<EOF >> /opt/docker-run/redis/conf/redis.conf
|
||||||
|
|
||||||
bind \$host
|
bind \$host
|
||||||
daemonize NO
|
daemonize NO
|
||||||
protected-mode no
|
protected-mode no
|
||||||
requirepass \$password
|
requirepass $password
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
#tee /opt/docker-run/redis/conf/redis.conf <<-'EOF'
|
||||||
|
#bind \$host
|
||||||
|
#daemonize NO
|
||||||
|
#protected-mode no
|
||||||
|
#requirepass \$password
|
||||||
|
#EOF
|
||||||
|
|
||||||
echo "拉取镜像"
|
echo "拉取镜像"
|
||||||
docker pull redis:latest
|
docker pull redis:latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user