{"id":2365,"date":"2016-08-03T13:45:01","date_gmt":"2016-08-03T17:45:01","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2365"},"modified":"2017-12-12T16:10:47","modified_gmt":"2017-12-12T21:10:47","slug":"install-redis-ubuntu-14","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/","title":{"rendered":"How to Install Redis on Ubuntu 14"},"content":{"rendered":"<h1>How to Install Redis on Ubuntu 14<\/h1>\n<p>Redis (Remote Dictionary Server) is an open-source NoSQL data structure server. Redis functions simultaneously as a database, a cache, and a message broker. As a database, the key-value store model used by Redis allows it to store and access very large amounts of data more efficiently than do relational databases. As a cache, Redis generally holds the entire database in memory, so complex analytical operations can be completed very quickly. As a message broker, Redis supports a number of popular protocols for job queues. Bindings for Redis are available for most widely-used programming languages. The present tutorial will guide you through the basics of installing and configuring Redis on Ubuntu 14.04. <\/p>\n<h2>Getting Started<\/h2>\n<p>In order to follow 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 Ubuntu 14.<br \/>\n\u2022 Root access to the server or a user with sudo privileges.<\/p>\n<p>All commands in this tutorial are written as if they are executed by root. <\/p>\n<h2>Tutorial<\/h2>\n<p>Always makes sure your Ubuntu 14.04 system is fully up to date before you install any new packages. Use the following apt-get commands to update your server&#8217;s system. <\/p>\n<p><code>apt-get update && apt-get upgrade -y<\/code><\/p>\n<p><strong>Install Redis<\/strong><\/p>\n<p>We recommend you use the Redis server package provided in the base repositories to install Redis on Ubuntu 14.04. To do so, simply enter the following command:<\/p>\n<p><code>apt-get install redis-server -y<\/code><\/p>\n<p><strong>Make Redis Secure<\/strong><\/p>\n<p>The default security settings on Redis allow users to connect to it from any IP address. Unless Redis is meant to be deployed on a cluster or you intend to connect to Redis from an external site, the safest option is to bind Redis to the local IP address. Doing so will prevent unauthorized users from gaining access to your Redis Keystore. <\/p>\n<p>To bind Redis to the local IP address, open the configuration file in the nano text editor:<\/p>\n<p><code>nano \/etc\/redis\/redis.conf<\/code><\/p>\n<p>Search for the line that starts with bind. Make sure the line is uncommented (no # at the beginning) and that it reads as follows:<\/p>\n<p><code class=\"gris\">bind 127.0.0.1<\/code><\/p>\n<p>Save and close the configuration file. <\/p>\n<p><strong>Getting Started With Redis<\/strong><\/p>\n<p>You are now ready to start Redis. Enter this command:<\/p>\n<p><code>service redis-server start<\/code><\/p>\n<p>To save yourself the trouble of having to start Redis manually in the future, set it to start automatically when your Ubuntu 14.04 server boots:<\/p>\n<p><code>update-rc.d redis-server enable<br \/>\nupdate-rc.d redis-server defaults<\/code><\/p>\n<p>Finally, test that Redis is working. Go ahead and enter your first data into the Redis server using the SET command:<\/p>\n<p><code>root@redis-node:~# redis-cli<\/code><br \/>\n<code class=\"gris\">127.0.0.1:6379> set besthost \"Globo.Tech\"<br \/>\nOK<\/code><\/p>\n<p>To check that you have successfully entered the data, use the command GET to retrieve your first entry. <\/p>\n<p><code class=\"gris\">127.0.0.1:6379> get besthost<br \/>\n\"Globo.Tech\"<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>You have installed, secured, and tested Redis on your Ubuntu 14.04 server. Whether you need to analyze a small amount of data or perform complex analytical tasks with an enormous dataset, Redis can now help you get the job done. Whatever languages you prefer to program in, there are almost certainly bindings available that will enable you to program Redis to do what you want it to do. 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 Redis on Ubuntu 14 Redis (Remote Dictionary Server) is an open-source NoSQL data structure server. Redis functions simultaneously as a database, a cache, and a message broker. As a database, the key-value store model used by Redis allows it to store and access very large amounts of data more efficiently than do<!-- 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-2365","post","type-post","status-publish","format-standard","hentry","category-database","operating_system-ubuntu-14-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Redis on Ubuntu 14 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now &amp; Try this NoSQL data structure server.\" \/>\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-redis-ubuntu-14\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Redis on Ubuntu 14 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now &amp; Try this NoSQL data structure server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-03T17:45:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T21:10:47+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Install Redis on Ubuntu 14\",\"datePublished\":\"2016-08-03T17:45:01+00:00\",\"dateModified\":\"2017-12-12T21:10:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/\"},\"wordCount\":499,\"commentCount\":0,\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/\",\"name\":\"How to Install Redis on Ubuntu 14 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-08-03T17:45:01+00:00\",\"dateModified\":\"2017-12-12T21:10:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now & Try this NoSQL data structure server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-redis-ubuntu-14\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Redis on Ubuntu 14\"}]},{\"@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 Redis on Ubuntu 14 - Globo.Tech","description":"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now & Try this NoSQL data structure server.","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-redis-ubuntu-14\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Redis on Ubuntu 14 - Globo.Tech","og_description":"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now & Try this NoSQL data structure server.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/","og_site_name":"Globo.Tech","article_published_time":"2016-08-03T17:45:01+00:00","article_modified_time":"2017-12-12T21:10:47+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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Install Redis on Ubuntu 14","datePublished":"2016-08-03T17:45:01+00:00","dateModified":"2017-12-12T21:10:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/"},"wordCount":499,"commentCount":0,"articleSection":["Database"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/","url":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/","name":"How to Install Redis on Ubuntu 14 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-08-03T17:45:01+00:00","dateModified":"2017-12-12T21:10:47+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install Redis (Remote Dictionary Server) on your Ubuntu 14 server. Read now & Try this NoSQL data structure server.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-redis-ubuntu-14\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install Redis on Ubuntu 14"}]},{"@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\/2365","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=2365"}],"version-history":[{"count":4,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2365\/revisions"}],"predecessor-version":[{"id":4025,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2365\/revisions\/4025"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}