天天看點

redis報錯

測試環境,應用報錯連接配接不到redis,檢視redis伺服器,沒有開啟。

使用 ./bin/redis-server etc/redis.conf,啟動後本地能通路,程序也有,但是其他應用伺服器卻不能連接配接。

telnet 192.168.18.222 6379 拒絕連接配接,後将redis.conf配置檔案做如下修改:

注釋掉bind 127.0.0.1 

修改protected-mode yes為protected-mode no

重新開機redis後,連接配接正常

本文轉自 wdy198622 51CTO部落格,原文連結:http://blog.51cto.com/weimouren/2061384

繼續閱讀