說明
默認情況下,redis只允許本機訪問。如果需要外部訪問,需要修改下配置文件。
配置修改
redis.windows.conf
將bind 127.0.0.1 注釋
將protected-mode修改為no

重啟redis
重啟redis必須指定配置文件redis.windows.conf
命令:redis-server redis.windows.conf
備注:如果不指定配置文件,redis仍然會取默認配置,redis服務會正常開啟,但是無法遠程連接。