{"id":2286,"date":"2016-07-26T14:16:44","date_gmt":"2016-07-26T18:16:44","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2286"},"modified":"2017-12-12T15:44:16","modified_gmt":"2017-12-12T20:44:16","slug":"install-configure-redis-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/","title":{"rendered":"How to Install and Configure a Redis Server on Ubuntu 16"},"content":{"rendered":"<h1>How to Install and Configure a Redis Server on Ubuntu 16<\/h1>\n<p>Redis, short for &#8220;Remote Dictionary Server&#8221;, is a scalable data structure store that can be distributed across multiple servers and architectures. It has features that mark it as being a versatile alternative to other database and cache alternatives, such as Lua scripting, in-memory persistence, and a multiplicity of data types. It&#8217;s also exceptional at dealing with use cases that require advanced queuing operations.<\/p>\n<p>Redis is in use by such well known sites as Patreon, Trello, Slack and Medium. It is open source under the BSD license.<\/p>\n<h2>Getting started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running a clean installation of Ubuntu 16.<br \/>\n\u2022 All commands should be run as the root user<\/p>\n<h2>Tutorial<\/h2>\n<p>Ensure that your installation of Ubuntu 16 is fully up to date with this command.<\/p>\n<p><ode>apt-get update &#038;&#038; apt-get upgrade -y<\/code><\/p>\n<p>Install the redis server package, which is included in the base repositories.<\/p>\n<p><code>apt-get install redis-server -y<\/code><\/p>\n<p>To prevent others from accessing your Redis keystore, you will need to make sure that Redis is bound to your local IP address. This is hands-down the safest security option, and the best one for this particular guide.<\/p>\n<p>First, open the Redis configuration in a text editor.<\/p>\n<p><code>nano \/etc\/redis\/redis.conf<\/code><\/p>\n<p>Next, search for the line which starts with bind. Change it to this line instead:<\/p>\n<p><code class=\"gris\">bind 127.0.0.1<\/code><\/p>\n<p>Start the Redis server.<\/p>\n<p><code>service redis-server start<\/code><\/p>\n<p>In order for Redis to start up again when the server is restarted, enable it to start on boot.<\/p>\n<p><code>update-rc.d redis-server enable<br \/>\nupdate-rc.d redis-server defaults<\/code><\/p>\n<p>Redis is installed! You can now enter the first data into your new Redis server.<\/p>\n<p><code class=\"gris\">root@redis-node:~# redis-cli<br \/>\n127.0.0.1:6379> set besthost \"Globo.Tech\"<br \/>\nOK<br \/>\n127.0.0.1:6379> get besthost<br \/>\n\"Globo.Tech\"<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>Now that you have Redis installed, take some time to explore the capabilities of one of the most popular NoSQL options out there. There are plugins that exist for many popular website backend technologies like WordPress, Magento, and Celery, so there&#8217;s plenty of opportunity to experiment.<\/p>\n<p>One thing that you&#8217;ll notice during use is that due to being entirely in-memory, Redis is much faster than any of the alternatives out there. It is single-threaded, however, so be careful to note that you cannot utilize parallel execution. Despite that, Redis will give you a lot of flexibility to manipulate data. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to Install and Configure a Redis Server on Ubuntu 16 Redis, short for &#8220;Remote Dictionary Server&#8221;, is a scalable data structure store that can be distributed across multiple servers and architectures. It has features that mark it as being a versatile alternative to other database and cache alternatives, such as Lua scripting, in-memory persistence,<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-2286","post","type-post","status-publish","format-standard","hentry","category-database","operating_system-ubuntu-16-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now &amp; Create your own data structure store.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now &amp; Create your own data structure store.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-26T18:16:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T20:44:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/\",\"name\":\"How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-07-26T18:16:44+00:00\",\"dateModified\":\"2017-12-12T20:44:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now & Create your own data structure store.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure a Redis Server on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech","description":"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now & Create your own data structure store.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now & Create your own data structure store.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-26T18:16:44+00:00","article_modified_time":"2017-12-12T20:44:16+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/","name":"How to Install and Configure a Redis Server on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-07-26T18:16:44+00:00","dateModified":"2017-12-12T20:44:16+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install and configure a Redis server on your Ubuntu 16 server. Read now & Create your own data structure store.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-configure-redis-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure a Redis Server on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2286"}],"version-history":[{"count":5,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2286\/revisions"}],"predecessor-version":[{"id":3984,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2286\/revisions\/3984"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}