From 64706e4210293b8ed41141d1b55529ad72b59f77 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 7 Dec 2018 17:44:32 +0800 Subject: [PATCH] =?UTF-8?q?redis=E8=B0=83=E6=95=B4ok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/redis/config/redis.conf | 7 +- plugins/redis/index.html | 140 +----------------------------- plugins/redis/index.py | 146 +++++++++++++++++++++++++++----- plugins/redis/init.d/redis.tpl | 73 ++++++++++++++++ 4 files changed, 206 insertions(+), 160 deletions(-) create mode 100644 plugins/redis/init.d/redis.tpl diff --git a/plugins/redis/config/redis.conf b/plugins/redis/config/redis.conf index 9a105dc7e..cc78927ec 100644 --- a/plugins/redis/config/redis.conf +++ b/plugins/redis/config/redis.conf @@ -1,6 +1,5 @@ - daemonize yes -pidfile redis.pid +pidfile {$SERVER_PATH}/redis/redis_6379.pid port 6379 timeout 0 @@ -8,7 +7,7 @@ tcp-keepalive 0 loglevel notice -logfile redis.log +logfile {$SERVER_PATH}/redis/data/redis.log databases 16 ################################ SNAPSHOTTING ################################# @@ -20,7 +19,7 @@ stop-writes-on-bgsave-error yes rdbcompression yes rdbchecksum yes dbfilename dump.rdb -dir data/ +dir {$SERVER_PATH}/redis/data/ ################################# REPLICATION ################################# diff --git a/plugins/redis/index.html b/plugins/redis/index.html index 6d26966fa..cb71e7fd2 100755 --- a/plugins/redis/index.html +++ b/plugins/redis/index.html @@ -1,150 +1,18 @@
-

服务

-

配置修改

+

服务

+

自启动

+

配置修改

负载状态

-