首先確保虛擬機防火牆已關閉
- ubuntu 中:
sudo ufw status // 查看防火牆狀態,inactive狀態是防火牆關閉狀態 active是開啟狀態
sudo ufw disable // 關閉防火牆
- centos 中:
service iptables status // 查看防火牆狀態
service iptables stop // 關閉防火牆
如防火牆已關閉則確認redis.conf中是否有限定IP
進入配置文件 sudo vi /etc/redis/redis.conf
添加 requirepass xxx xxx 為設定的密碼
注釋掉 bind 127.0.0.1
重啟 sudo /etc/init.d/redis-server restart
此時使用Redis Desktop Manager連接提示成功