Redis Destop Manager不能访问虚拟机
2016-05-13 15:46
519 查看
虚拟机centOS中安装Redis,主机Redis Destop Manager不能访问虚拟机Redis server的解决方案
今天在学些redis的时候碰到个问题,发现主机Redis Destop Manager不能访问虚拟机Redis server的解决方案,找了一些网上的资料,原因可能有两个,整理记录下来:1. Redis.conf文件中打开了
# By default Redis listens for connections from all the network interfaces
# available on the server. It is possible to listen to just one or multiple
# interfaces using the "bind" configuration directive, followed by one or
# more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
#如果上面这一行打开了,请关闭它。
2. 如果发现配置文件里面的bind没有打开,请尝试下面的步骤:
centos默认使用firewalld来管理netfilter子系统,不过底层调用的命令仍然是iptables等,所以先关掉firewalld:
systemctl stop firewalld #屏蔽(让它不能启动)或显示该服务 systemctl mask firewalld
然后安装iptables服务包:
yum install iptables-services
让服务在系统启动的时候启动:
systemctl enable iptables
下面是iptables的命令example:
systemctl [stop|start|restart] iptables
保存防火墙的规则:
service iptables save
or
/usr/libexec/iptables/iptables.init save 试一下看是不是你的Redis Destop Manager是不是可以连接到虚拟机的Redis server了。
标签: Redis
相关文章推荐
- redis的启动脚本
- Redis主从在线互相切换
- redis在linux环境下的安装与启动
- redis-c api
- windows下安装redis
- redis+mysql数据同步(协同)C/C++实现
- centos7安装redis
- Redis3.0集群环境的搭建详细步骤
- redis设置密码
- redis常用命令与使用配置
- 利用redis + lua解决抢红包高并发的问题
- Linux Redis环境搭建
- Linux中redis主从配置
- 基于nginx tomcat redis分布式web应用的session共享配置
- 【原创】搭建Nginx(负载均衡)+Redis(Session共享)+Tomcat集群
- 新浪微博:史上最大的Redis集群
- glutSwapBuffers和glutPostRedisplay
- 搭建Nginx(负载均衡)+Redis(Session共享)+Tomcat集群
- tomcat+nginx+redis实现均衡负载、session共享(一)
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory