1.修改redis.conf文件:redis
a.去掉bind:127.0.0.0服務器
b.protected mode 模式改爲 norest
2.重啓redisblog
/etc/init.d/redis restartit
3. 若是還連不上,頗有多是端口沒有開啓,去服務器開啓6379端口,而後重啓一下服務器KO了im