@echo off
title redis
echo start -- redis
set ENV_HOME="D:\Redis-x64-3.2.100"
D:
color 0a
cd %ENV_HOME%
redis-server.exe redis.windows.conf
exit
@echo off
title mongodb
echo start-- mongodb
set MON_HOME="E:\software\Mongodb\bin"
E:
color 0a
cd %MON_HOME%
mongod --dbpath E:\software\Mongodb\bin\data
exit
参考:
https://blog.csdn.net/feinifi/article/details/82992743
https://www.cnblogs.com/pingfan1990/p/4558630.html