码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu下设置redis让其他服务器访问

时间:2016-04-18 16:58:52      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:

修改redis配置文件,将

bind 127.0.0.1
to

bind 0.0.0.0
Then restart your service (service redis-server restart)

You can then now check that redis is listening on non-local interface with

redis-cli -h 192.168.x.x ping
(replace 192.168.x.x with your IP adress)

如果出现如下的界面,说明成功了:

技术分享

 

修改iptables的地址:

http://www.oschina.net/question/139706_246053

Ubuntu下设置redis让其他服务器访问

标签:

原文地址:http://www.cnblogs.com/zl0372/p/redis_iptables.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!