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? |