Cannot connect to Redis in EC2 from other instances

147 views
Skip to first unread message

Shyalika Pathirana

unread,
Jun 3, 2015, 2:29:36 AM6/3/15
to redi...@googlegroups.com
Hi,

I have installed and configured Redis in an EC2 instance according to the http://redis.io/topics/quickstart guide. I have added an inbound rule to allow access from our network to 6379 port. Also checked the config file to see whether bind property is commented.

My netstat result is as below:

[ec2-user@ip-10-10-102-0 ~]$ netstat -a | egrep 'Proto|LISTEN'

Proto Recv-Q Send-Q Local Address               Foreign Address             State      

tcp        0      0 *:ssh                       *:*                         LISTEN      

tcp        0      0 localhost:smtp              *:*                         LISTEN      

tcp        0      0 *:6379                      *:*                         LISTEN      

tcp        0      0 *:ssh                       *:*                         LISTEN 


I still can't even connect from an EC2 instance in the same VPC. Everything seems to work from the Redis instance itself.


Is there anything I am missing here?


Regards,


Shyalika

Josiah Carlson

unread,
Jun 3, 2015, 3:00:45 AM6/3/15
to redi...@googlegroups.com
This isn't a Redis problem, it is an EC2 configuration problem. Based on your description, you might be missing a security group configuration on the client side to allow for that host to connect to your Redis server.

If you continue to have problems, I would suggest trying a forum specific to EC2 configuration.

 - Josiah


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

孑影

unread,
Jun 3, 2015, 6:24:20 AM6/3/15
to redi...@googlegroups.com
You maybe show you EC2 ip address

if you have EC2 instances public ip adress . you will access the pulbic ip address.

redis-cli -h you_public_ip_address

if can't access it .you maybe trying contact EC2.

#风起看云涌,叶落品人生#
Reply all
Reply to author
Forward
0 new messages