{"id":4029,"date":"2021-12-06T19:02:59","date_gmt":"2021-12-06T13:32:59","guid":{"rendered":"https:\/\/www.helptoinstall.com\/?p=4029"},"modified":"2026-03-30T13:07:56","modified_gmt":"2026-03-30T07:37:56","slug":"how-to-install-redis-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","title":{"rendered":"How To Install Redis on Ubuntu 18.04 ?"},"content":{"rendered":"\n<p>Key-value store Redis is renowned for its versatility, performance, and support of a wide range of languages and dialects.<br>Install, configure and secure Redis on an Ubuntu 18.04 server with this article.<\/p>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p>A non-root user with sudo capabilities and a basic firewall are required to finish this article.<br>You can do this by following the instructions in our Initial Server Setup guide.<\/p>\n\n\n\n<p>You can begin by logging into your Ubuntu 18.04 server as your sudo user and following the instructions provided below.<\/p>\n\n\n\n<p><strong>Step 1 \u2014 Installing and Configuring Redis<\/strong><\/p>\n\n\n\n<p>Installing Redis from the official Ubuntu repositories using apt is the best way to get the most recent version.<\/p>\n\n\n\n<p>If you haven&#8217;t recently updated your local apt package cache, do so now:<\/p>\n\n\n\n<p><strong>sudo apt update<\/strong><\/p>\n\n\n\n<p>Then, type: Redis to install it.<\/p>\n\n\n\n<p><strong>sudo apt install Redis-server<\/strong><\/p>\n\n\n\n<p>All the necessary software will be installed in this process, including Redis.<br>The Redis configuration file generated automatically following the installation has one critical configuration update to make.<\/p>\n\n\n\n<p>Using your chosen text editor, open this file:<\/p>\n\n\n\n<p><strong>sudo nano \/etc\/redis\/redis.conf<\/strong><\/p>\n\n\n\n<p>Locate the supervised directive in the file.<br>This directive allows you to specify an init system to manage Redis as a service, giving you greater control over its operation..<br>By default, the supervised directive is turned off.<br>Change this to systemd since you&#8217;re running Ubuntu, which makes use of the systemd init system:<\/p>\n\n\n\n<p>\/<strong>etc<\/strong>\/<strong>redis\/redis.conf<\/strong><\/p>\n\n\n\n<p>Now that you&#8217;ve made that one update to the Redis configuration file, you&#8217;re done. Save and close it.<br>Restart Redis to take effect the modifications you made in the Redis configuration file:<\/p>\n\n\n\n<p>$<strong> sudo systemctl restart redis.service<\/strong><\/p>\n\n\n\n<p>Now that Redis is installed and configured, you may start using it.<br>It&#8217;s a good idea to verify if Redis is working properly before employing it.<\/p>\n\n\n\n<p><strong>Step 2 \u2014 Testing Redis<\/strong><\/p>\n\n\n\n<p>Make sure Redis is working as intended before making any more configuration changes, as you would with any freshly installed software.<br>In this section, we&#8217;ll cover a few strategies to ensure that Redis is functioning properly.<\/p>\n\n\n\n<p>Ensure that the Redis service is up and operating by doing the following steps:<\/p>\n\n\n\n<p>$ <strong>sudo systemctl status redis<\/strong><\/p>\n\n\n\n<p>If the command is running without any errors, the output will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\u25cf redis-server.service - Advanced key-value store\n   Loaded: loaded (\/lib\/systemd\/system\/redis-server.service; enabled; vendor preset: enabled)\n   Active: active (running) since Wed 2018-06-27 18:48:52 UTC; 12s ago\n     Docs: http:\/\/redis.io\/documentation,\n           man:redis-server(1)\n  Process: 2421 ExecStop=\/bin\/kill -s TERM $MAINPID (code=exited, status=0\/SUCCESS)\n  Process: 2424 ExecStart=\/usr\/bin\/redis-server \/etc\/redis\/redis.conf (code=exited, status=0\/SUCCESS)\n Main PID: 2445 (redis-server)\n    Tasks: 4 (limit: 4704)\n   CGroup: \/system.slice\/redis-server.service\n           \u2514\u25002445 \/usr\/bin\/redis-server 127.0.0.1:6379<\/code><\/pre>\n\n\n\n<p>Since Redis is already active and configured to run every time the server boots, you can see that it&#8217;s already running and ready to go.<\/p>\n\n\n\n<p>Most frequent Redis use cases benefit from this option.<br>It&#8217;s also possible to configure a command to start Redis manually every time your server boots:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl disable redis<\/code><\/pre>\n\n\n\n<p>The command-line client can be used to verify that Redis is working properly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$redis-cli<\/code><\/pre>\n\n\n\n<p>Use the ping command at the following prompt to see if you&#8217;re connected:<\/p>\n\n\n\n<p>127. 0 . 0 . 1 : 6379 &gt; ping<\/p>\n\n\n\n<p>output : pong<\/p>\n\n\n\n<p>As you can see, there&#8217;s still a working connection to the server.<br>Next, see if you have the ability to set keys by performing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt;set test \"It's working!\"\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>OutputOK<\/code><\/pre>\n\n\n\n<p>Type the following to get the value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; get test<\/code><\/pre>\n\n\n\n<p>Your cached value can be retrieved as long as everything is running smoothly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\"It's working!\"<\/code><\/pre>\n\n\n\n<p>Having confirmed that you can retrieve the value, return to the shell by closing the Redis prompt.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379> exit<\/code><\/pre>\n\n\n\n<p>Ultimately, we&#8217;ll see if data persists after restarting or shutting down Redis.<br>The first procedure is to restart Redis:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart redis<\/code><\/pre>\n\n\n\n<p>Once you&#8217;ve reconnected with the command-line client, make that your test value is still there:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ redis-cli<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; get test<\/code><\/pre>\n\n\n\n<p>It is important that the value of your key remains accessible:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\"It's working!\"<\/code><\/pre>\n\n\n\n<p>Once you&#8217;ve completed, re-enter the shell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379> exit<\/code><\/pre>\n\n\n\n<p>Redis is now fully operational and ready for you to utilise, as a result of this.<br>The problem is that certain of its default configuration settings are vulnerable to assault and unauthorised access to your server and its data, making it vulnerable to attack.<br>According to the official Redis website, these vulnerabilities can be mitigated via the following steps.<br>Redis will still function if you don&#8217;t follow these steps, however it is strongly suggested that you do so in order to increase the security of your system.<\/p>\n\n\n\n<p><strong>Step 3 \u2014 Binding to localhost<\/strong><\/p>\n\n\n\n<p>Redis, by default, may only be accessed from within the local network.<br>You may have modified the Redis configuration file to accept connections from any IP address if you followed a guide other than this one.<br>Localhost binding is far more secure than this.<\/p>\n\n\n\n<p>Open the Redis configuration file and make the modifications to fix the problem:<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano \/etc\/redis\/redis.conf<\/code><\/pre>\n\n\n\n<p>This line should be uncommented (remove the # if it is there).<\/p>\n\n\n\n<p>\/<strong>etc\/redis\/redis.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bind 127.0.0.1 ::1<\/code><\/pre>\n\n\n\n<p>Close and save the file (CTRL + X, Y, ENTER) when you&#8217;re done.<\/p>\n\n\n\n<p>Make sure that systemd is aware of your changes by restarting the service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart redis<\/code><\/pre>\n\n\n\n<p>Locate the following line and remove the # if it appears:<\/p>\n\n\n\n<p>\/etc\/redis\/r<strong>edis.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bind 127.0.0.1 ::1<\/code><\/pre>\n\n\n\n<p>Close and save the file (CTRL + X, Y, ENTER) when you&#8217;re done.<\/p>\n\n\n\n<p>Make sure that systemd is aware of your changes by restarting the service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart redis<\/code><\/pre>\n\n\n\n<p>Using the netstat command, you can verify that this update has taken effect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo netstat -lnp | grep redis<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Outputtcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      14222\/redis-server  \ntcp6       0      0 ::1:6379                :::*                    LISTEN      14222\/redis-server  \n<\/code><\/pre>\n\n\n\n<p>According to the Redis configuration file, the redis-server application is bound to localhost (127.0.0.1).<br>Check to make sure that you uncommented the proper line and restart the Redis service again if you see a different IP address (0.0.0.0, for example).<\/p>\n\n\n\n<p>It will be more difficult for bad actors to make requests or get access to your server now that your Redis installation is only listening in on localhost.<br>In contrast to this, Redis does not currently enforce authentication before making changes to its configuration or the data it contains.<br>This can be remedied by requiring Redis client users to authenticate themselves with a password before making modifications (redis-cli).<\/p>\n\n\n\n<p><strong>Step 4 \u2014 Configuring a Redis Password<\/strong><\/p>\n\n\n\n<p>The auth command, which requires clients to authenticate before accessing the database, can be enabled by configuring a Redis password, one of the two built-in security mechanisms.<br>So open the Redis.conf file in your favourite text editor and type in the password you&#8217;d like to use to access Redis.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano \/etc\/redis\/redis.conf\n<\/code><\/pre>\n\n\n\n<p>Look for a statement in the SECURITY section that reads:<\/p>\n\n\n\n<p>\/<strong>etc\/redis\/redis.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># requirepass foobared<\/code><\/pre>\n\n\n\n<p>Remove the # and change foobared to a more safe password by uncommenting it.<\/p>\n\n\n\n<p>Restart Redis after you&#8217;ve saved and closed the file and set the password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart redis.service\n<\/code><\/pre>\n\n\n\n<p>Access the Redis command line and run the following command to verify that the password is correct.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ redis-cli<\/code><\/pre>\n\n\n\n<p>Redis passwords can be tested using the following command sequence.<br>Setting a key value before authentication is the first command&#8217;s goal.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; set key1 10<\/code><\/pre>\n\n\n\n<p>In this case, Redis sends an error because you failed to authenticate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output(error) NOAUTH Authentication required.<\/code><\/pre>\n\n\n\n<p>The command prompt authenticates with the Redis configuration file&#8217;s password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; auth your_redis_password<\/code><\/pre>\n\n\n\n<p>Redis acknowledges:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\nOK<\/code><\/pre>\n\n\n\n<p>After that, the previous command will perform as planned:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; set key1 10<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\nOK<\/code><\/pre>\n\n\n\n<p>obtain the queries for the first key1<br>The new key&#8217;s value can be found in Redis.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379> get key1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\n\"10\"<\/code><\/pre>\n\n\n\n<p>Following authentication, you can exit the redis-cli and run commands in the Redis client:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; quit<\/code><\/pre>\n\n\n\n<p>The next topic we&#8217;ll cover is renaming Redis instructions, which, if executed maliciously or by accident, can do a lot of damage to your PC.<\/p>\n\n\n\n<p>S<strong>tep 5 \u2014 Renaming Dangerous Commands<\/strong><\/p>\n\n\n\n<p>Renaming or deactivating hazardous instructions in Redis is another security tool embedded into the database server.<\/p>\n\n\n\n<p>Such commands can be used by unauthorised users to alter, delete, or otherwise erase your data.<br>In the same SECURITY section of the \/etc\/redis\/redis.conf file, renaming or deactivating commands can be specified.<\/p>\n\n\n\n<p>Commands such as FLUSHDB and FLUSHALL are regarded dangerous, as are KEYS, PEXPIRE, DEL, CONFIG, SHUTDOWN, BGREWRITEAOF and SAVE. SPOP, SREM, RENAME and DEBUG are all considered risky.<br>Starting with renaming or deactivating all of the commands on that list is a smart place to begin improving the security of your Redis server.<\/p>\n\n\n\n<p>Whether or whether a command should be disabled or renamed depends on your personal or site-specific requirements.<br>Disabling a command that could be misused if you know you won&#8217;t ever use it is fine.<br>As a result, renaming it may be in your best interests.<\/p>\n\n\n\n<p>Redis commands can be enabled or disabled by reopening the Redis configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano  \/etc\/redis\/redis.conf<\/code><\/pre>\n\n\n\n<p>An empty string (two quote marks with no letters between them) is all that is needed to disable a command.<\/p>\n\n\n\n<p>\/etc\/redis\/redis.conf<\/p>\n\n\n\n<p>. . .<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\" id=\"h-by-renaming-a-command-it-is-also-possible-to-fully-remove-it-from-the-system\">By renaming a command, it is also possible to fully remove it from the system.<\/h2>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\" id=\"h-an-empty-string\">an empty string:<\/h2>\n\n\n\n<p>#<br>rename-command FLUSHDB &#8220;&#8221;<br>rename-command FLUSHALL &#8220;&#8221;<br>rename-command DEBUG &#8220;&#8221;<br>. . .<\/p>\n\n\n\n<p>This Redis installation will no longer be able to use FLUSHDB, FLUSHALL, or DEBUG if these directives are added and followed by empty strings.<\/p>\n\n\n\n<p>You can rename a command by giving it a new name, such as the examples below.<br>A command&#8217;s name should be tough for others to decipher, yet simple for you to remember.<\/p>\n\n\n\n<p>. . .<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-rename-command-config\">rename-command CONFIG &#8220;&#8221;<\/h2>\n\n\n\n<p>rename-command SHUTDOWN SHUTDOWN_MENOT<br>rename-command CONFIG ASC12_CONFIG<br>. . .<\/p>\n\n\n\n<p>Renaming the SHUTDOWN and CONFIG commands to SHUTDOWN MENOT and ASC12 CONFIG, respectively, is done in these instances.<\/p>\n\n\n\n<p>Close the document and save your work.<\/p>\n\n\n\n<p>After renaming a command, restart Redis to apply the change:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart redis.service\n<\/code><\/pre>\n\n\n\n<p>The Redis client can be used to see if these commands were successfully updated:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ redis-cli<\/code><\/pre>\n\n\n\n<p>Then, authenticate:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; auth your_redis_password<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\nOK<\/code><\/pre>\n\n\n\n<p>In the prior example, you renamed the command CONFIG to ASC12 CONFIG.<br>Initially, you may want to use the original CONFIG command.<br>Because you&#8217;ve renamed it, it should fail:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; config get requirepass\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\n(error) ERR unknown command 'config'\n<\/code><\/pre>\n\n\n\n<p>The renamed command, on the other hand, will work.<br>It doesn&#8217;t matter if it&#8217;s capitalised or lowercase:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; asc12_config get requirepass\n<\/code><\/pre>\n\n\n\n<p>Anyone who runs Redis&#8217; config command can access the installation&#8217;s underlying configuration file.<br>In combination with get and a directive from the configuration file, the command will return that directive and its current value:.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output1) \"requirepass\"\n2) \"your_redis_password\"<\/code><\/pre>\n\n\n\n<p>Finally, you can exit from <code>redis-cli<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127 . 0 . 0 . 1 : 6379&gt; exit<\/code><\/pre>\n\n\n\n<p>If you&#8217;re already using the Redis command line and then restart Redis, you&#8217;ll need to re-authenticate to continue using the service.<br>If you type a command, you&#8217;ll get this error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\nNOAUTH Authentication required.<\/code><\/pre>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>After completing this course, you should be able to set up Redis, verify that it is working properly, and use the security measures built into Redis to protect it from malicious actors.<\/p>\n\n\n\n<p>The Redis-specific security mechanisms we&#8217;ve implemented can be easily bypassed once someone has logged in to your server.<br>That&#8217;s why it&#8217;s so vital to have a firewall in place on your Redis server, as it makes it nearly impossible for hackers to get past that barrier.<\/p>\n\n\n\n<p>HelptoInstall presents Redis Installation service at a low-cost. We have deployed our <a href=\"https:\/\/www.hostnats.com\/\">experts<\/a> 24\/7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Key-value store Redis is renowned for its versatility, performance, and support of a wide range of languages and dialects.Install, configure and secure Redis on an Ubuntu 18.04 server with this article. Prerequisites A non-root user with sudo capabilities and a basic firewall are required to finish this article.You can do this by following the instructions [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,125],"tags":[235,236,237],"class_list":["post-4029","post","type-post","status-publish","format-standard","hentry","category-blog","category-database-software","tag-how-to-configure-redis","tag-how-to-install-redis","tag-how-to-install-redis-on-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.4 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install Redis on Ubuntu 18.04: Easy Setup Guide<\/title>\n<meta name=\"description\" content=\"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.\" \/>\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.hostnats.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=\"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostnats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hostnats\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-06T13:32:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-30T07:37:56+00:00\" \/>\n<meta name=\"author\" content=\"Gopu Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hostnats\" \/>\n<meta name=\"twitter:site\" content=\"@hostnats\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gopu Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\"},\"author\":{\"name\":\"Gopu Kumar\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/#\/schema\/person\/e913d744f9f4f9a2ed5f95c409f5cc10\"},\"headline\":\"How To Install Redis on Ubuntu 18.04 ?\",\"datePublished\":\"2021-12-06T13:32:59+00:00\",\"dateModified\":\"2026-03-30T07:37:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\"},\"wordCount\":1703,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/#organization\"},\"keywords\":[\"how to configure redis\",\"how to install redis\",\"how to install redis on ubuntu\"],\"articleSection\":[\"Blog\",\"Database Software\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\",\"url\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\",\"name\":\"Install Redis on Ubuntu 18.04: Easy Setup Guide\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/#website\"},\"datePublished\":\"2021-12-06T13:32:59+00:00\",\"dateModified\":\"2026-03-30T07:37:56+00:00\",\"description\":\"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hostnats.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Redis on Ubuntu 18.04 ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/#website\",\"url\":\"https:\/\/www.hostnats.com\/blog\/\",\"name\":\"Hostnats\",\"description\":\"The Perfect Hosting Partner\",\"publisher\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostnats.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/#organization\",\"name\":\"Hostnats Hosting\",\"url\":\"https:\/\/www.hostnats.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.hostnats.com\/blog\/wp-content\/uploads\/2020\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.hostnats.com\/blog\/wp-content\/uploads\/2020\/07\/logo.png\",\"width\":66,\"height\":67,\"caption\":\"Hostnats Hosting\"},\"image\":{\"@id\":\"https:\/\/www.hostnats.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/hostnats\",\"https:\/\/x.com\/hostnats\",\"https:\/\/www.instagram.com\/hostnats_hosting\/\",\"https:\/\/www.linkedin.com\/company\/hostnats\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostnats.com\/blog\/#\/schema\/person\/e913d744f9f4f9a2ed5f95c409f5cc10\",\"name\":\"Gopu Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g\",\"caption\":\"Gopu Kumar\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install Redis on Ubuntu 18.04: Easy Setup Guide","description":"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.","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.hostnats.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":"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.","og_url":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","og_site_name":"Hostnats","article_publisher":"https:\/\/www.facebook.com\/hostnats","article_published_time":"2021-12-06T13:32:59+00:00","article_modified_time":"2026-03-30T07:37:56+00:00","author":"Gopu Kumar","twitter_card":"summary_large_image","twitter_creator":"@hostnats","twitter_site":"@hostnats","twitter_misc":{"Written by":"Gopu Kumar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"},"author":{"name":"Gopu Kumar","@id":"https:\/\/www.hostnats.com\/blog\/#\/schema\/person\/e913d744f9f4f9a2ed5f95c409f5cc10"},"headline":"How To Install Redis on Ubuntu 18.04 ?","datePublished":"2021-12-06T13:32:59+00:00","dateModified":"2026-03-30T07:37:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"},"wordCount":1703,"commentCount":0,"publisher":{"@id":"https:\/\/www.hostnats.com\/blog\/#organization"},"keywords":["how to configure redis","how to install redis","how to install redis on ubuntu"],"articleSection":["Blog","Database Software"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","url":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/","name":"Install Redis on Ubuntu 18.04: Easy Setup Guide","isPartOf":{"@id":"https:\/\/www.hostnats.com\/blog\/#website"},"datePublished":"2021-12-06T13:32:59+00:00","dateModified":"2026-03-30T07:37:56+00:00","description":"Learn how to install Redis on Ubuntu 18.04 fast! Follow our step-by-step guide and boost your server performance today.","breadcrumb":{"@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostnats.com\/blog\/how-to-install-redis-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostnats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Redis on Ubuntu 18.04 ?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostnats.com\/blog\/#website","url":"https:\/\/www.hostnats.com\/blog\/","name":"Hostnats","description":"The Perfect Hosting Partner","publisher":{"@id":"https:\/\/www.hostnats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostnats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hostnats.com\/blog\/#organization","name":"Hostnats Hosting","url":"https:\/\/www.hostnats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostnats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hostnats.com\/blog\/wp-content\/uploads\/2020\/07\/logo.png","contentUrl":"https:\/\/www.hostnats.com\/blog\/wp-content\/uploads\/2020\/07\/logo.png","width":66,"height":67,"caption":"Hostnats Hosting"},"image":{"@id":"https:\/\/www.hostnats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hostnats","https:\/\/x.com\/hostnats","https:\/\/www.instagram.com\/hostnats_hosting\/","https:\/\/www.linkedin.com\/company\/hostnats"]},{"@type":"Person","@id":"https:\/\/www.hostnats.com\/blog\/#\/schema\/person\/e913d744f9f4f9a2ed5f95c409f5cc10","name":"Gopu Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3a04e307992cf527a3f7224d55ec81767a1094f0278d86fb791aa46b3552bc8c?s=96&d=mm&r=g","caption":"Gopu Kumar"}}]}},"_links":{"self":[{"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/posts\/4029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/comments?post=4029"}],"version-history":[{"count":1,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/posts\/4029\/revisions"}],"predecessor-version":[{"id":6459,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/posts\/4029\/revisions\/6459"}],"wp:attachment":[{"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/media?parent=4029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/categories?post=4029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostnats.com\/blog\/wp-json\/wp\/v2\/tags?post=4029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}