From f08a4e5c5e401e8f053d17ef9904b10b1d3f086a Mon Sep 17 00:00:00 2001 From: blobt <380255922@qq.com> Date: Thu, 5 Dec 2019 16:42:54 +0800 Subject: [PATCH] redis setup --- redis/data/.gitignore | 2 ++ redis/run.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 redis/data/.gitignore create mode 100755 redis/run.sh diff --git a/redis/data/.gitignore b/redis/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/redis/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/redis/run.sh b/redis/run.sh new file mode 100755 index 0000000..52613da --- /dev/null +++ b/redis/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh +docker ps +docker stop redis +docker rm redis +docker run -d --name redis -v $PWD/etc:/usr/local/etc/redis -v $PWD/data:/data -p 6379:6379 redis --requirepass "73937393" --appendonly yes