{"id":15,"date":"2015-09-04T12:29:58","date_gmt":"2015-09-04T12:29:58","guid":{"rendered":"http:\/\/www.asianux.org.vn\/?p=15"},"modified":"2015-09-04T12:29:58","modified_gmt":"2015-09-04T12:29:58","slug":"redis-environment","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/09\/04\/redis-environment\/","title":{"rendered":"Redis \u2013 Environment"},"content":{"rendered":"<h2>Install Redis on Ubuntu<\/h2>\n<p>To install the Redis on Ubuntu, go to terminal and type the following commands:<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"pln\">$sudo apt-get update<\/span>\n<span class=\"pln\">$sudo apt-get install redis-server<\/span>\n<\/pre>\n<p>This will install redis on your machine.<br \/>\n<b>Start Redis<\/b><\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"pln\">$redis-server<\/span>\n<\/pre>\n<p><b>Check if redis is working?<\/b><\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"pln\">$redis-cli<\/span>\n<\/pre>\n<p>This will open a redis prompt, as shown below:<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"pln\">redis 127.0.0.1:6379&gt;<\/span>\n<\/pre>\n<p>In the above prompt <b>127.0.0.1<\/b> is your machine\u2019s IP address and <b>6379<\/b> is port on which redis server is running. Now type the <b>PING<\/b> command as shown below.<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"pln\">redis 127.0.0.1:6379&gt; ping<\/span>\n<span class=\"pln\">PONG<\/span>\n<\/pre>\n<p>This shows that you have successfully installed redis on your machine.<\/p>\n<h2>Install Redis Desktop Manager on Ubuntu<\/h2>\n<p>To install redis dessktop manager on ubuntu, just download the package from<a href=\"http:\/\/redisdesktop.com\/download\" target=\"_blank\" rel=\"noopener\">http:\/\/redisdesktop.com\/download<\/a>Open the downloaded package and install it.<br \/>\nRedis desktop manager will give you UI to manage your redis keys and data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Redis on Ubuntu To install the Redis on Ubuntu, go to terminal and type the following commands: $sudo apt-get update $sudo apt-get install redis-server This will install redis on your machine. Start Redis $redis-server&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-he-thong"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/15","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=15"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}