{"id":5259,"date":"2020-08-03T13:01:24","date_gmt":"2020-08-03T07:31:24","guid":{"rendered":"https:\/\/www.skynats.com\/?p=5259"},"modified":"2021-10-26T16:24:59","modified_gmt":"2021-10-26T10:54:59","slug":"how-to-install-redis-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","title":{"rendered":"How to Install Redis on Ubuntu 18.04?"},"content":{"rendered":"\n<p>Redis is an open-source, in memory-data structure store and it can be used as a database cache and message broker. It&#8217;s a distributed in-memory key-value database with optional durability. It provides data structures such as strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.<\/p>\n\n\n\n<p>This blog helps you to Install Redis on Ubuntu 18.04 version and if you are looking for installing and managing Redis for your application or server, please contact our expert team to get it done. You can also refer to our <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#006699\" class=\"has-inline-color\">high-performance server management<\/span><\/a><span class=\"has-inline-color has-accent-color\"> <\/span>plan to get this done under monthly server management.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of Redis on Ubuntu 18.04<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install redis-server<\/code><\/pre>\n\n\n\n<p>Configure Redis Server on Redis configuration file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/etc\/redis\/\nvim redis.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>####Change the bind ip address with 127.0.0.1\nbind 127.0.0.1\n####Change the \"supervised\" option to systemd because we are using ubuntu server and systemd.\nsupervised systemd<\/code><\/pre>\n\n\n\n<p>Start and enable Redis server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart redis-server\nsystemctl enable redis-server<\/code><\/pre>\n\n\n\n<p>Check the status of the Redis server, Redis server will listen on 127.0.0.1 on port 6379.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status redis-server\nnetstat -plntu<\/code><\/pre>\n\n\n\n<p>Check Redis by &#8220;redis-cli&#8221; command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli ping\nredis-cli ping \"Hello Redis\"<\/code><\/pre>\n\n\n\n<p>If the &#8220;redis-cli ping&#8221; command shows output as &#8220;PONG&#8221; and the &#8220;redis-cli ping &#8220;Hello Redis&#8221; shows the output as &#8220;Hello Redis&#8221; then we can confirm that the Redis server is installed correctly.<\/p>\n\n\n\n<p>Redis needs to be configured and hardened properly to secure the environment and to make it worth your application. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote is-style-default\"><blockquote class=\"has-text-color has-vivid-red-color\"><p><strong>Do you want our team to install and configure Redis property for your website?<\/strong><\/p><cite><strong><a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">CONTACT US NOW<\/a><\/strong><\/cite><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Redis is an open-source, in memory-data structure store and it can be used as a database cache and message broker. It&#8217;s a distributed in-memory key-value database with optional durability. It provides data structures such as strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. This blog helps you to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[110,111,112],"class_list":["post-5259","post","type-post","status-publish","format-standard","hentry","category-blog","tag-redis-in-ubuntu","tag-redis-installation-on-ubuntu","tag-redis-installation-on-ubuntu18"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Redis on Ubuntu 18.04? | Server Management<\/title>\n<meta name=\"description\" content=\"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!\" \/>\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.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\" \/>\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 18.04?\" \/>\n<meta property=\"og:description\" content=\"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-03T07:31:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-26T10:54:59+00:00\" \/>\n<meta name=\"author\" content=\"Pooja V\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pooja V\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Pooja V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\"},\"headline\":\"How to Install Redis on Ubuntu 18.04?\",\"datePublished\":\"2020-08-03T07:31:24+00:00\",\"dateModified\":\"2021-10-26T10:54:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/\"},\"wordCount\":213,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"redis in ubuntu\",\"redis installation on ubuntu\",\"redis installation on ubuntu18\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Redis on Ubuntu 18.04? | Server Management\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2020-08-03T07:31:24+00:00\",\"dateModified\":\"2021-10-26T10:54:59+00:00\",\"description\":\"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-install-redis-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Redis on Ubuntu 18.04?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\",\"name\":\"Pooja V\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"caption\":\"Pooja V\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Redis on Ubuntu 18.04? | Server Management","description":"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!","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.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Redis on Ubuntu 18.04?","og_description":"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!","og_url":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2020-08-03T07:31:24+00:00","article_modified_time":"2021-10-26T10:54:59+00:00","author":"Pooja V","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Pooja V","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"},"author":{"name":"Pooja V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e"},"headline":"How to Install Redis on Ubuntu 18.04?","datePublished":"2020-08-03T07:31:24+00:00","dateModified":"2021-10-26T10:54:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"},"wordCount":213,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["redis in ubuntu","redis installation on ubuntu","redis installation on ubuntu18"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","url":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","name":"How to Install Redis on Ubuntu 18.04? | Server Management","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2020-08-03T07:31:24+00:00","dateModified":"2021-10-26T10:54:59+00:00","description":"Read our blog to know how to install redis on ubuntu 18.04 server. If you need to install redis for your website, contact us right now!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Redis on Ubuntu 18.04?"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e","name":"Pooja V","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","caption":"Pooja V"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/5259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=5259"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/5259\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=5259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=5259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=5259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}