I am trying to connect to redis server running on EC2. I uncomment the bind line in redis conf file.
>> netstat -nlpt | grep 6379
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN -
but I still could not connect to it with the following command:
redis-cli -h ec2-xx-xx.us-west-1.compute.amazonaws.com -p 6379
Am i missing something here? I am able to connect the the ec2 box through ssh:
ssh -i ~/.ec2/ec2.pem [email protected]
Thanks
asked Jan 11, 2013 at 21:46
Jensen
1,7335 gold badges26 silver badges44 bronze badges
-
Do you have port 6379 accessible in your security policy?Mike Brant– Mike Brant2013年01月11日 21:54:55 +00:00Commented Jan 11, 2013 at 21:54
-
@Mike Brant Where to set it? In AWS?Jensen– Jensen2013年01月11日 22:19:13 +00:00Commented Jan 11, 2013 at 22:19
-
If you are working in AWS Console, then you need go go modify the security policy associated with the instance to accept incoming traffic on port 6379.Mike Brant– Mike Brant2013年01月11日 22:26:07 +00:00Commented Jan 11, 2013 at 22:26
-
1@MikeBrant Thanks, it works after I set a new rule for the inbound.Jensen– Jensen2013年01月11日 22:26:17 +00:00Commented Jan 11, 2013 at 22:26
-
Good. I have added answer below for any future visitors to this question.Mike Brant– Mike Brant2013年01月11日 22:28:00 +00:00Commented Jan 11, 2013 at 22:28
1 Answer 1
You need to set the security policy associated with the instance to allow for inbound traffic on port 6379.
answered Jan 11, 2013 at 22:27
Mike Brant
71.4k10 gold badges102 silver badges104 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.