剛開始使用redis-desktop-management時連接不上:
解決辦法:
1、conf/redis.conf 裏面的
bind 127.0.0.1這一行註釋掉,或者bind 0.0.0.0
這裏的bind指的是隻有指定的網段才能遠程訪問這個redis。 註釋掉後,就沒有這個限制了。
或者bind 自己所在的網段
2、在etc/redis.conf裏面
protected-mode 要設置成no (默認是設置成yes的, 防止了遠程訪問,在redis3.2.3版本後)
3、我的服務器用的是firewall-cmd
firewall-cmd--zone=public--add-port=6379/tcp--permanent
firewall-cmd --reload#重啓firewall
這個時候要保證redis的服務器啓動:
redis-server
/etc/redis.conf
測試一下打開客戶端:
redis-cli
4、然後使用redis-desktop-management遠程連接,使用方法很簡單,我這裏就不做介紹了。