{"id":7134,"date":"2017-11-28T08:38:11","date_gmt":"2017-11-28T00:38:11","guid":{"rendered":"http:\/\/rmohan.com\/?p=7134"},"modified":"2017-11-28T08:38:11","modified_gmt":"2017-11-28T00:38:11","slug":"setting-up-redis-on-aws-ec2-instance","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7134","title":{"rendered":"Setting up redis on aws EC2\u00a0instance"},"content":{"rendered":"<div id=\"page\" class=\"hfeed\">\n<div id=\"main\">\n<div id=\"primary\">\n<div id=\"content\" role=\"main\">\n<article id=\"post-161\" class=\"post-161 post type-post status-publish format-standard hentry category-aws tag-amazon tag-aws tag-database tag-ec2 tag-redis\">\n<header class=\"entry-header\">\n<h1 class=\"entry-title\">Setting up redis on aws EC2\u00a0instance<\/h1>\n<p><!-- .entry-meta --><\/header>\n<p><!-- .entry-header --><\/p>\n<div class=\"entry-content\">\n<p>Launch an EC2 instance of type Amazon Linux AMI from your aws console.<\/p>\n<p>SSH into your ec2 instance<br \/>\n<code>ssh -i ec2-user@my_ec2_ip<\/code><\/p>\n<p>Update the instance<br \/>\n<code>sudo yum update -y<\/code><\/p>\n<p>Install the developer tools to compile the redis source<br \/>\n<code>sudo yum groupinstall -y \"Development Tools\"<\/code><\/p>\n<p>Install <a href=\"https:\/\/www.tcl.tk\/\">tcl<\/a><br \/>\n<code>sudo yum install -y tcl<\/code><\/p>\n<p>Download the latest redis source<br \/>\n<code>wget <a href=\"http:\/\/download.redis.io\/redis-stable.tar.gz\" rel=\"nofollow\">http:\/\/download.redis.io\/redis-stable.tar.gz<\/a><\/code><\/p>\n<p>unzip the source<br \/>\n<code>tar xvzf redis-stable.tar.gz<\/code><\/p>\n<p>go to the redis folder and run the make command to compile the source<code><br \/>\ncd redis-stable<br \/>\nmake<br \/>\nmake test<br \/>\nsudo make install<br \/>\n<\/code><\/p>\n<p>to run the server, go to the src folder and run the daemonize command.<code><br \/>\ncd src<br \/>\n.\/redis-server --daemonize yes<br \/>\n<\/code><\/p>\n<p>Run the redis-cli command to check if server resonds.<code><br \/>\nredis-cli<br \/>\nping<br \/>\n<\/code><\/p>\n<p>If the response is PONG then you are good to go ????<\/p>\n<\/div>\n<\/article>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> Setting up redis on aws EC2 instance <\/p>\n<p><p>Launch an EC2 instance of type Amazon Linux AMI from your aws console.<\/p>\n<p>SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip<\/p>\n<p>Update the instance sudo yum update -y<\/p>\n<p>Install the developer tools to compile the redis source sudo yum groupinstall -y &#8220;Development Tools&#8221;<\/p>\n<p>Install tcl [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7134"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7134"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7134\/revisions"}],"predecessor-version":[{"id":7135,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7134\/revisions\/7135"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}