{"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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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"],"_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}]}}