{"id":31,"date":"2014-10-31T01:23:00","date_gmt":"2014-10-31T01:23:00","guid":{"rendered":"http:\/\/www.asianux.org.vn\/index.php\/2014\/10\/31\/install-redis-on-centos-6-5-2\/"},"modified":"2014-10-31T01:23:00","modified_gmt":"2014-10-31T01:23:00","slug":"install-redis-on-centos-6-5-2","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2014\/10\/31\/install-redis-on-centos-6-5-2\/","title":{"rendered":"Install Redis on CentOS 6.5"},"content":{"rendered":"<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Perform an update to ensure you&#8217;ve got the latest of everything in the base package.<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\"><span style=\"color: #c20cb9; font-weight: bold;\">yum update<\/span><\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Install wget so you can download a few things.<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\"><span style=\"color: #c20cb9; font-weight: bold;\">yum install<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span><\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Allow yum to locate\/install redis, per this page here.<\/span><\/h4>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: RobotoRegular, Helvetica, Verdana, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0.4em 0px 0.5em; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><a href=\"http:\/\/thoughts.z-dev.org\/2013\/05\/27\/install-redis-on-centos-6-4\/\" rel=\"nofollow noopener\" style=\"background: url(data:image\/png; color: #663366; padding-right: 13px; text-decoration: none;\" target=\"_blank\">http:\/\/thoughts.z-dev.org\/2013\/05\/27\/install-redis-on-centos-6-4\/<\/a><\/div>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\"><span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> http:<span style=\"color: black; font-weight: bold;\">\/\/<\/span>dl.fedoraproject.org<span style=\"color: black; font-weight: bold;\">\/<\/span>pub<span style=\"color: black; font-weight: bold;\">\/<\/span>epel<span style=\"color: black; font-weight: bold;\">\/<\/span><span style=\"color: black;\">6<\/span><span style=\"color: black; font-weight: bold;\">\/<\/span>x86_64<span style=\"color: black; font-weight: bold;\">\/<\/span>epel-release-<span style=\"color: black;\">6<\/span>-<span style=\"color: black;\">8<\/span>.noarch.rpm<br \/><span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> http:<span style=\"color: black; font-weight: bold;\">\/\/<\/span>rpms.famillecollet.com<span style=\"color: black; font-weight: bold;\">\/<\/span>enterprise<span style=\"color: black; font-weight: bold;\">\/<\/span>remi-release-<span style=\"color: black;\">6<\/span>.rpm<br \/>rpm <span style=\"color: #660033;\">-Uvh<\/span> remi-release-<span style=\"color: black;\">6<\/span><span style=\"color: black; font-weight: bold;\">*<\/span>.rpm epel-release-<span style=\"color: black;\">6<\/span><span style=\"color: black; font-weight: bold;\">*<\/span>.rpm<span style=\"color: red;\">\"<\/span><\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Now, install all the prerequisites<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\"><span style=\"color: #c20cb9; font-weight: bold;\">yum install<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">tar<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">make<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">automake<\/span> <span style=\"color: #c20cb9; font-weight: b\nold;\">gcc<\/span> gcc-c++ <span style=\"color: #c20cb9; font-weight: bold;\">git<\/span> net-tools libcurl-devel libxml2-devel libffi-devel libxslt-devel tcl redis ImageMagick npm mysql-server mysql-devel nginx libyaml libyaml-devel <span style=\"color: #c20cb9; font-weight: bold;\">patch<\/span> readline-devel libtool <span style=\"color: #c20cb9; font-weight: bold;\">bison<\/span><\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Enable and start MySQL<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\">chkconfig <span style=\"color: #660033;\">--level<\/span> <span style=\"color: black;\">3<\/span> mysqld on<br \/>service mysqld start<\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Secure your MySQL installation by setting a password. replace &#8216;new-password&#8217; with your secure password.<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\">mysqladmin <span style=\"color: #660033;\">-u<\/span> root password <span style=\"color: red;\">'new-password'<\/span><br \/>mysqladmin <span style=\"color: #660033;\">-u<\/span> root <span style=\"color: #660033;\">-h<\/span> YourHost.YourDomain.com password <span style=\"color: red;\">'new-password'<\/span><\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Open up the necessary firewall ports<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: top;\"><span style=\"color: #c20cb9; font-weight: bold;\">vi<\/span> <span style=\"color: black; font-weight: bold;\">\/<\/span>etc<span style=\"color: black; font-weight: bold;\">\/<\/span>sysconfig<span style=\"color: black; font-weight: bold;\">\/<\/span>iptables<br \/>  copy this line.<br \/>    <span style=\"color: #660033;\">-A<\/span> INPUT <span style=\"color: #660033;\">-m<\/span> state <span style=\"color: #660033;\">--state<\/span> NEW <span style=\"color: #660033;\">-m<\/span> tcp <span style=\"color: #660033;\">-p<\/span> tcp <span style=\"color: #660033;\">--dport<\/span> <span style=\"color: black;\">22<\/span> <span style=\"color: #660033;\">-j<\/span> ACCEPT<br \/>  and add two <span style=\"color: #c20cb9; font-weight: bold;\">more<\/span> with port <span style=\"color: black;\">80<\/span> <span style=\"color: black; font-weight: bold;\">&amp;<\/span> <span style=\"color: black;\">443<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">as<\/span> well<br \/>    <span style=\"color: #660033;\">-A<\/span> INPUT <span style=\"color: #660033;\">-m<\/span> state <span style=\"color: #660033;\">--state<\/span> NEW <span style=\"color: #660033;\">-m<\/span> tcp <span style=\"color: #660033;\">-p<\/span> tcp <span style=\"color: #660033;\">--dport<\/span> <span style=\"color: black;\">80<\/span> <span style=\"color: #660033;\">-j<\/span> ACCEPT<br \/>    <span style=\"color: #660033;\">-A<\/span> INPUT <span style=\"color: #660033;\">-m<\/span> state <span style=\"color: #660033;\">--state<\/span> NEW <span style=\"color: #660033;\">-m<\/span> tcp <span style=\"color: #660033;\">-p<\/span> tcp <span style=\"color: #660033;\">--dport<\/span> <span style=\"color: black;\">443<\/span> <span style=\"color: #660033;\">-j<\/span> ACCEPT<\/pre>\n<\/div>\n<\/div>\n<h4 style=\"-webkit-text-stroke-width: 0px; background: none rgb(255, 255, 255); border-bottom-style: none; color: black; font-family: RobotoBoldCondensed, Helvetica, Verdana, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 19.2000007629395px; margin: 0px 0px 0.3em; orphans: auto; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><span>Restart the firewall<\/span><\/h4>\n<div dir=\"ltr\" style=\"-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 1em 0px; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"font-family: monospace; line-height: normal;\">\n<pre style=\"background: none; border: 0px none white; color: black; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; overflow-x: auto; padding: 0p\nx; vertical-align: top;\">service iptables restart<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Perform an update to ensure you&#8217;ve got the latest of everything in the base package. yum update Install wget so you can download a few things. yum install wget Allow yum to locate\/install redis, per&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}