redis connetced refused remote
239down vote
|
I've been stuck with the same issue, and the preceding answer did not help me (albeit well written). The solution is here : check your
to
Then restart your service ( You can then now check that redis is listening on non-local interface with
(replace 192.168.x.x with your IP adress) |
---------------------------------------------------------------------------------------------------------------------------------------------
I've just install Redis succesfully using the instructions on the Quick Start guide on http://redis.io/topics/quickstart on my Ubuntu 10.10 server. I'm running the service as dameon (so it can be run by init.d) The server is part of Rackspace Cluster with Internal and External IPs. The host is running on port 6379 (standard for Redis) I've added a row in the iptables to allow incoming connections from port 6379 as shown below:
In my PHP code on another server, I'm trying to connect to the new Redis server here:
Once I do this - I always get a connection refused. In my redis.conf file, I have the local bind command commented out, so it should be listening on more than the localhost IP. I can connect to the database on the local machine just not on another server. I've tried the external and internal IPs with no luck. Any suggestions on getting this to work? |
最新文章
- wex5 教程之 图文讲解 文件上传attachmentSimple(1)
- 深入了解Activity-生命周期
- CF 103E Buying Sets 最大权闭合子图,匹配 难度:4
- Java7编程高手进阶读书笔记—集合框架
- SQL优化的四个方面,缓存,表结构,索引,SQL语句
- 用JDK自带的工具生成客户端调用Webservice的代码
- Yii PHP 框架分析(二)
- oracle 中的select ...connect by prior ...start with 及(+)的用法
- WPF换肤之七:异步
- linux下磁盘进行分区、文件系统创建、挂载和卸载(转)
- 二、mongo数据库
- windows 上搭建 sftp 服务器 --freesshd
- Linux Ubuntu从零开始部署web环境及项目 -----快捷键设置(四)
- [Hdu1342] Lotto
- 001_HTTP参数中Etag的重要性
- Debug技巧
- English trip V1 - 19.Where Am I? 我在哪里?Teacher:Patrick Key:Ask for and directions
- Forbidden Subwords
- 控制台输出到txt
- c++多态特性总结