Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 17, 2024
1 parent 57d04de commit 2fc3fd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions plugins/valkey/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def initDreplace():
mw.execShell('chmod +x ' + file_bin)

# config replace
dst_conf = getServerDir() + '/valkey.conf'
dst_conf = getConf()
dst_conf_init = getServerDir() + '/init.pl'
if not os.path.exists(dst_conf_init):
content = mw.readFile(getConfTpl())
Expand Down Expand Up @@ -233,7 +233,7 @@ def getPort():

def getRedisCmd():
requirepass = ""
conf = getServerDir() + '/valkey.conf'
conf = getConf()
content = mw.readFile(conf)
rep = r"^(requirepass)\s*([.0-9A-Za-z_& ~]+)"
tmp = re.search(rep, content, re.M)
Expand Down Expand Up @@ -462,11 +462,11 @@ def initdUinstall():


def runLog():
return getServerDir() + '/data/redis.log'
return getServerDir() + '/data/valkey.log'


def getRedisConfInfo():
conf = getServerDir() + '/redis.conf'
conf = getConf()

gets = [
{'name': 'bind', 'type': 2, 'ps': '绑定IP(修改绑定IP可能会存在安全隐患)','must_show':1},
Expand Down Expand Up @@ -509,7 +509,7 @@ def submitRedisConf():
gets = ['bind', 'port', 'timeout', 'maxclients',
'databases', 'requirepass', 'maxmemory','slaveof','masterauth']
args = getArgs()
conf = getServerDir() + '/valkey.conf'
conf = getConf()
content = mw.readFile(conf)
for g in gets:
if g in args:
Expand Down
10 changes: 5 additions & 5 deletions plugins/valkey/js/valkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function redisPost(method, version, args,callback){
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 });

var req_data = {};
req_data['name'] = 'redis';
req_data['name'] = 'valkey';
req_data['func'] = method;
req_data['version'] = version;

Expand Down Expand Up @@ -30,7 +30,7 @@ function redisPostCallbak(method, version, args,callback){
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 });

var req_data = {};
req_data['name'] = 'redis';
req_data['name'] = 'valkey';
req_data['func'] = method;
args['version'] = version;

Expand Down Expand Up @@ -280,9 +280,9 @@ 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';
function valkeyReadme(){
var cmd_01 = '/www/server/valkey/bin/valkey-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/valkey/bin/valkey-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 = '<ul class="help-info-text c7">';
Expand Down

0 comments on commit 2fc3fd3

Please sign in to comment.