redis desktop manager 连接不上虚拟机的redis

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sdaujsj1/article/details/84253116

redis desktop manager 连接不上虚拟机的redis
原因:防火墙没关
解决方案:
service iptables stop
查看状态:
service iptables status

[root@bogon bin]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

You have new mail in /var/spool/mail/root
[root@bogon bin]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@bogon bin]# service iptables status
iptables: Firewall is not running.
[root@bogon bin]# 

参考博客:
https://www.cnblogs.com/skyessay/p/6437318.html

猜你喜欢

转载自blog.csdn.net/sdaujsj1/article/details/84253116