先下載windows版本的redis
https://github.com/MSOpenTech/redis/releases
配置redis.windows-service文件
bind 127.0.0.1 #56行解綁ip訪問
protected-mode yes # 75行是否保護訪問,no的話外部訪問開啓
port 6379 #79行修改端口
啓動redis
cd D:\work\Redis-x64-3.2.100
d:
redis-server.exe redis.windows.conf
可以把着這個寫入.bat文件中,當作啓動腳本用