一、在window系统,运行多个redis服务
1、找到redis-window安装的根目录
C:\Program Files\Redis (这个是我的目录)
2、可以看见,redis.windows.conf 就是redis服务端的配置文件
3、复制多份配置文件,每个配置文件修改成自己需要的(作者这里只对端口进行了修改)
每个配置文件只改了port
4、根据配置文件,构建redis服务
# 服务端口6379
redis-server.exe redis.windows.conf
# 服务端口6380
redis-server.exe redis.windows1.conf
# 服务端口6381
redis-server.exe redis.windows2.conf
# 服务端口6382
redis-server.exe redis.windows3.conf