From 2eaccab39d7ca15497cdd286eade19bddf8a084b Mon Sep 17 00:00:00 2001 From: 8ga Date: Mon, 27 Oct 2025 19:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=AE=89=E8=A3=85Redis6.m?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 安装Redis6.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 安装Redis6.md diff --git a/安装Redis6.md b/安装Redis6.md new file mode 100644 index 0000000..ca55957 --- /dev/null +++ b/安装Redis6.md @@ -0,0 +1,20 @@ +``` +docker run -d \ + --name redis-6.2.6 \ + --memory="512m" \ + --memory-swap="-1" \ + --restart=on-failure:3 \ + -p 宿主机端口号:6379 \ + -v 替换成redis持久化存储目录:/data \ + -e REDIS_PORT=6379 \ + -e REDIS_REQUIREPASS='登录密码' \ + docker.1ms.run/redis:6.2.6 \ + redis-server --bind 0.0.0.0 \ + --requirepass 'Ketao@789!' \ + --appendonly no \ + --save "" \ + --dir /data \ + --daemonize no \ + --maxmemory 500mb \ + --maxmemory-policy allkeys-lru +``` \ No newline at end of file