From 66f0b8691ccfffab6df51d2e48e9cdbf0894857a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 10 Nov 2023 01:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E9=9B=86=E5=88=9B=E5=BB=BA=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/redis/index.html | 4 +++- plugins/redis/install.sh | 1 + plugins/redis/js/redis.js | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/plugins/redis/index.html b/plugins/redis/index.html index ec400b9cc..3b3944cf5 100755 --- a/plugins/redis/index.html +++ b/plugins/redis/index.html @@ -20,7 +20,9 @@

复制状态

集群状态

集群节点

-

日志

+

运行日志

+

相关说明

+
diff --git a/plugins/redis/install.sh b/plugins/redis/install.sh index ca9af8c7b..22b40fd23 100755 --- a/plugins/redis/install.sh +++ b/plugins/redis/install.sh @@ -10,6 +10,7 @@ serverPath=$(dirname "$rootPath") # https://www.cnblogs.com/zlonger/p/16177595.html # https://www.cnblogs.com/BNTang/articles/15841688.html +# ps -ef|grep redis |grep -v grep | awk '{print $2}' | xargs kill # cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/redis && bash install.sh install 7.2.2 diff --git a/plugins/redis/js/redis.js b/plugins/redis/js/redis.js index 70835a7c6..1697e96aa 100755 --- a/plugins/redis/js/redis.js +++ b/plugins/redis/js/redis.js @@ -279,3 +279,19 @@ function submitConf(version) { }); } + +function redisReadme(){ + var cmd_01 = '/www/server/redis/bin/redis-cli --cluster create 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 --cluster-replicas 0'; + var cmd_02 = '/www/server/redis/bin/redis-cli --cluster create 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382 127.0.0.1:6383 127.0.0.1:6384 --cluster-replicas 1'; + + + var readme = ''; + + $('.soft-man-con').html(readme); +} +