为各个启动单独建立脚本后用总的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