9

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
5
  • Do you have port 6379 accessible in your security policy? Commented Jan 11, 2013 at 21:54
  • @Mike Brant Where to set it? In AWS? Commented 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. Commented Jan 11, 2013 at 22:26
  • 1
    @MikeBrant Thanks, it works after I set a new rule for the inbound. Commented Jan 11, 2013 at 22:26
  • Good. I have added answer below for any future visitors to this question. Commented Jan 11, 2013 at 22:28

1 Answer 1

18

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.