It was not possible to connect to the redis server(s); to create a disconnec
報這個錯誤,請檢查redis服務是否啟動
若redis服務已啟動,且仍然無法鏈接redis,請嘗試以下操作:
1、執行 redis-cli.exe (若該命令報錯,則先執行 redis-server --service-start)
2、shutdown
3、exit
4、redis-server.exe redis.windows.conf
看到如下界面,說明redis運行正常
另附上windows以服務的方式啟動redis (無需一直打開cmd窗口)
1、卸載redis服務:redis-server --service-uninstall(若已開啟)
2、重新安裝redis服務: redis-server --service-install redis.windows.conf
3、啟動redis服務:redis-server --service-start
4、完成
附上其他操作命令:
1、停止redis服務:redis-server --service-stop