windos批处理启动redis与哨兵

为各个启动单独建立脚本后用总的bat调用

创建脚本,redis6379.bat
脚本内容:
@echo off
title redis-server
set ENV_HOME6379="G:\Redis6379"
set ENV_HOME6380="G:\Redis6380"
set ENV_HOME6381="G:\Redis6381"
G:
cd %ENV_HOME6379%
start redis-server.exe redis.windows.conf
cd %ENV_HOME6380%
start redis-server.exe redis.windows.conf
cd %ENV_HOME6381%
start redis-server.exe redis.windows.conf

cd %ENV_HOME6379%
start redis-server.exe sentinel.conf --sentinel
cd %ENV_HOME6380%
start redis-server.exe sentinel.conf --sentinel
cd %ENV_HOME6381%
start redis-server.exe sentinel.conf --sentinel

exit

posted @ 2019-08-23 01:39  洁瑞小弟  阅读(449)  评论(0编辑  收藏  举报