{"id":7195,"date":"2018-01-31T08:53:34","date_gmt":"2018-01-31T00:53:34","guid":{"rendered":"http:\/\/rmohan.com\/?p=7195"},"modified":"2018-01-31T08:53:34","modified_gmt":"2018-01-31T00:53:34","slug":"amazon-linux-redis-install","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7195","title":{"rendered":"amazon linux redis install"},"content":{"rendered":"<h2>Redis Install<\/h2>\n<h3><span id=\"using-epel-repository\" class=\"fragment\"><\/span>Using\u00a0<code>epel<\/code>\u00a0Repository<\/h3>\n<div class=\"code-frame\" data-lang=\"bash\">\n<div class=\"highlight\">\n<pre>sudo yum --enablerepo<span class=\"o\">=<\/span>epel install redis\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-frame\" data-lang=\"text\">\n<div class=\"highlight\">\n<pre>=====================================================================================================================================================================\r\n Package                              Arch                                  Version                                        Repository                           Size\r\n=====================================================================================================================================================================\r\nInstalling:\r\n redis x86_64 2.4.10-1.el6 warm 213 k\r\n\r\nTransaction Summary\r\n=====================================================================================================================================================================\r\nInstall  1 Package\r\n<\/pre>\n<\/div>\n<\/div>\n<p>version 2.4.10-1.el6 has been installed.\u00a0(January 30, 2016)<\/p>\n<h3><span id=\"using-remi-repository\" class=\"fragment\"><\/span>Using\u00a0<code>remi<\/code>\u00a0Repository<\/h3>\n<div class=\"code-frame\" data-lang=\"bash\">\n<div class=\"highlight\">\n<pre>sudo rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm\r\nsudo yum --enablerepo<span class=\"o\">=<\/span>remi install redis\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-frame\" data-lang=\"text\">\n<div class=\"highlight\">\n<pre>=====================================================================================================================================================================\r\n Package                              Arch                               Version                                         Repository                             Size\r\n=====================================================================================================================================================================\r\nInstalling:\r\n redis x86_64 3.0.7-1.el6.remi remi 442 k\r\nInstalling for dependencies:\r\n jemalloc                             x86_64                             3.3.1-1.8.amzn1                                 amzn-main                             111 k\r\n\r\nTransaction Summary\r\n=====================================================================================================================================================================\r\nInstall  1 Package (+1 Dependent package)\r\n<\/pre>\n<\/div>\n<\/div>\n<p>version 3.0.7-1.el6.remi was installed.\u00a0(January 30, 2016)<\/p>\n<p>Reference URL<br \/>\n<a id=\"reference-b78231232c64a9eb6f01\" href=\"http:\/\/qiita.com\/stoshiya\/items\/b8c1d2eb41770f92ffcf\">Install redis on AWS EC 2<\/a><\/p>\n<h2><span id=\"setting-service\" class=\"fragment\"><\/span>Setting Service<\/h2>\n<p>Start service, set automatic startup<\/p>\n<div class=\"code-frame\" data-lang=\"bash\">\n<div class=\"highlight\">\n<pre>sudo service redis start\r\nsudo chkconfig --level <span class=\"m\">35<\/span> redis on\r\nsudo chkconfig --list <span class=\"p\">|<\/span> grep redis\r\n<\/pre>\n<\/div>\n<\/div>\n<p>Execution result<\/p>\n<div class=\"code-frame\" data-lang=\"text\">\n<div class=\"highlight\">\n<pre>$ sudo service redis start\r\nStarting redis-server:   [  OK  ]\r\n$ sudo chkconfig --level 35 redis on\r\n$ sudo chkconfig --list | grep redis\r\nredis           0:off   1:off   2:off   3:on    4:off   5:on    6:off\r\nredis-sentinel  0:off   1:off   2:off   3:off   4:off   5:off   6:off<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Redis Install Using epel Repository sudo yum &#8211;enablerepo=epel install redis ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: redis x86_64 2.4.10-1.el6 warm 213 k Transaction Summary ===================================================================================================================================================================== Install 1 Package <\/p>\n<p>version 2.4.10-1.el6 has been installed. (January 30, 2016)<\/p>\n<p> Using remi Repository sudo rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm sudo yum &#8211;enablerepo=remi install redis ===================================================================================================================================================================== Package Arch Version Repository [&#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\/7195"}],"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=7195"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7195\/revisions"}],"predecessor-version":[{"id":7196,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7195\/revisions\/7196"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}