Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

connect to redis server on AWS EC2

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

like image 412
Jensen Avatar asked Jan 11 '13 21:01

Jensen


1 Answers

You need to set the security policy associated with the instance to allow for inbound traffic on port 6379.

like image 196
Mike Brant Avatar answered Oct 08 '22 09:10

Mike Brant