{"id":11344,"date":"2024-04-24T05:18:21","date_gmt":"2024-04-24T05:18:21","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=11344"},"modified":"2024-05-06T09:10:58","modified_gmt":"2024-05-06T09:10:58","slug":"how-to-install-redis-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/","title":{"rendered":"How to Install Redis on Ubuntu 22.04"},"content":{"rendered":"<p>Redis is an in-memory key-value data structure store. It\u2019s become the go-to solution for organizations and developers because of efficient performance and flexibility. Redis is typically utilized in real-time scenarios, for instance, background jobs, messaging, caching, and analytics. Moreover, it is written in C language and supports a wide range of data types, such as strings, lists, hashes, and others.<\/p>\n<p>This blog will teach you how to install Redis on Ubuntu 22.04. There are three methods for installing Redis. Let\u2019s demonstrate them one by one!<\/p>\n<h2>Method 1: How to Install Redis from APT Repository on Ubuntu 22.04?<\/h2>\n<p>To install the Redis from the Ubuntu official repository, first update and upgrade the local apt package list by executing the following command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img fetchpriority=\"high\" decoding=\"async\" width=\"818\" height=\"472\" class=\"wp-image-11345\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-1.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-1.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-1-300x173.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-1-768x443.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/pre>\n<p>To install the Redis, run the following command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>Here, we installed the \u201c<strong>redis<\/strong>\u201d package which includes all the essentials:<\/p>\n<p><img decoding=\"async\" width=\"816\" height=\"398\" class=\"wp-image-11346\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-2.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-2.png 816w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-2-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-2-768x375.png 768w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>Now, check the version of Redis to ensure its installation through the provided command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>redis-server --version<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>According to the given output, the latest version \u201c<strong>6.0.16<\/strong>\u201d of Redis has been installed successfully on Ubuntu 22.04:<\/p>\n<p><img decoding=\"async\" width=\"818\" height=\"118\" class=\"wp-image-11347\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-3.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-3.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-3-300x43.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-3-768x111.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/p>\n<p>After the installation, let\u2019s run the given command to check the current status of the Redis service:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo systemctl status redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"329\" class=\"wp-image-11348\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-4.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-4.png 820w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-4-300x120.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-4-768x308.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/pre>\n<p><strong>Note: <\/strong>according to the above-given output, our Redis server is active. In case, if it is not, then you can start it by executing the following command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo systemctl start redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"68\" class=\"wp-image-11349\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-5.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-5.png 816w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-5-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-5-768x64.png 768w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/pre>\n<h2><strong>Method 2:<\/strong> <strong>How to Install Redis via Redis Repository on Ubuntu 22.04?<\/strong><\/h2>\n<p>Here is another method for installing the Redis via its repository on Ubuntu 22.04. For that particular purpose, first, install the \u201c<strong>Isb_release<\/strong>\u201d tool that is necessary to get the Ubuntu version including the \u201c<strong>curl<\/strong>\u201d and \u201c<strong>gpg<\/strong>\u201d utilities that help in downloading the GPG key:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install lsb-release curl gpg<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"313\" class=\"wp-image-11350\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-6.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-6.png 816w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-6-300x115.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-6-768x295.png 768w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/pre>\n<p>Next, authenticate the Redis repository by adding the GPG key through the following command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>curl -fsSL https:\/\/packages.redis.io\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/redis-archive-keyring.gpg<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"80\" class=\"wp-image-11351\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-7.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-7.png 815w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-7-300x29.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-7-768x75.png 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/pre>\n<p>Now, trace your Ubuntu version and add the Redis repository by running the below-stated command to your sources list:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>echo \"deb [signed-by=\/usr\/share\/keyrings\/redis-archive-keyring.gpg] https:\/\/packages.redis.io\/deb $(lsb_release -cs) main\" | sudo tee \/etc\/apt\/sources.list.d\/redis.list<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"119\" class=\"wp-image-11352\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-8.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-8.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-8-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-8-768x112.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/pre>\n<p>After doing so, run the \u201c<strong>apt update<\/strong>\u201d command to update the package list:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt update<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"288\" class=\"wp-image-11353\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-9.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-9.png 817w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-9-300x106.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-9-768x271.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/pre>\n<p>Finally, to install the Redis service, use the provided command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"461\" class=\"wp-image-11354\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-10.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-10.png 819w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-10-300x169.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-10-768x432.png 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/pre>\n<p>To verify the successful installation of Redis on Ubuntu 22.04, use the given command to check the version:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>redis-server --version<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"85\" class=\"wp-image-11355\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-11.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-11.png 816w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-11-300x31.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-11-768x80.png 768w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/pre>\n<h2>Method 3: How to Install Redis from Snap on Ubuntu 22.04?<\/h2>\n<p>You can install Redis from the Snap Store but maintain it differently than the Ubuntu official repositories method. To do so, execute the \u201c<strong>snap install redis<\/strong>\u201d command to install the Redis:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo snap install redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"66\" class=\"wp-image-11356\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-12.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-12.png 815w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-12-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-12-768x62.png 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/pre>\n<p>As we described earlier, Snap manages Redis on its own. For that purpose, the below given \u201c<strong>snap start redis<\/strong>\u201d command to start the Redis, \u201c<strong>snap enable redis<\/strong>\u201d command to enable Redis, and \u201c<strong>snap enable redis<\/strong>\u201d command to restart the Redis are used:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo snap start redis\n\nsudo snap enable redis\n\nsudo snap restart redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>Now, use the given command to check if the Redis service is working or not:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo systemctl status redis<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"329\" class=\"wp-image-11357\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-13.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-13.png 820w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-13-300x120.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-13-768x308.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/pre>\n<p>Then, execute the \u201c<strong>redis-cli<\/strong>\u201d command to access the Redis server and the \u201c<strong>ping<\/strong>\u201d command to test the Redis connectivity:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>redis-cli \nping<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>The \u201c<strong>PONG<\/strong>\u201d output confirms that the server connection is working correctly:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"82\" class=\"wp-image-11358\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-14.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-14.png 817w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-14-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-14-768x77.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/p>\n<p>After doing so, set the key-value pair by running the \u201c<strong>set<\/strong>\u201d command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>Redis-cli \nset test \"Redis is working on Ubuntu22.04\"<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>Here, \u201c<strong>test<\/strong>\u201d is the Key, and the \u201c<strong>Redis is working on Ubuntu22.04<\/strong>\u201d is the key value:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"116\" class=\"wp-image-11359\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-15.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-15.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-15-300x43.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-15-768x109.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/p>\n<p>Now to check the key value, execute the \u201c<strong>get<\/strong>\u201d command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>get test<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"105\" class=\"wp-image-11360\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-16.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-16.png 817w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-16-300x39.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-16-768x99.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/pre>\n<p>Lastly, execute the \u201c<strong>exit<\/strong>\u201d command to close the Redis prompt for getting back to the shell:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>exit<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"64\" class=\"wp-image-11361\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-17.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-17.png 817w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-17-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-17-768x60.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/pre>\n<p>If you want to delete the key-value pair, run the \u201c<strong>del<\/strong>\u201d command along with the particular key name. For instance, here \u201c<strong>test<\/strong>\u201d is our key:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>del test<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"66\" class=\"wp-image-11362\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-18.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-18.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-18-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-18-768x62.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/pre>\n<h2>How to Remove apt-based Redis from Ubuntu 22.04?<\/h2>\n<p>Users often encounter multiple situations (such as Redis crashing) where they want to uninstall\/remove Redis from their Ubuntu 22.04 system. To do so, multiple methods are available that depend on their installation method.<\/p>\n<p>Here, if you have installed Redis using the Ubuntu official repository or via the Redis repository, execute the below command to permanently uninstall Redis from the system:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt autoremove redis --purge<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"420\" class=\"wp-image-11363\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-19.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-19.png 820w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-19-300x154.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-19-768x393.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/pre>\n<p><strong>How to Remove Snap-based Redis from Ubuntu 22.04?<\/strong><\/p>\n<p>Use the provided command if you have installed the Redis server from the Snap store:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo snap remove redis --purge<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"70\" class=\"wp-image-11364\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-20.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-20.png 817w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-20-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/word-image-11344-20-768x66.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/pre>\n<p>That was all about the installation of the Redis on Ubuntu 22.04.<\/p>\n<h2>Conclusion<\/h2>\n<p>Redis is an open-source key-value data store that offers more caching speed for read\/write operations. It can be installed on Ubuntu from its official repository, the Redis repository, and the Snap store. Furthermore, the Redis repository and Snap store offer the most latest version however, Snap provides minimal control over the Redis due to its self-management nature. We have described the different ways of installing Redis on Ubuntu 22.04.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Redis is an in-memory key-value data structure store. It\u2019s become the go-to solution for organizations and developers because of efficient performance and flexibility. Redis is typically utilized in real-time scenarios, for instance, background jobs, messaging, caching, and analytics. Moreover, it is written in C language and supports a wide range of data types, such as [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11366,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[314,224],"class_list":["post-11344","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-redis","tag-ubuntu-22-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Redis on Ubuntu 22.04 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-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 22.04 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-24T05:18:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T09:10:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install Redis on Ubuntu 22.04\",\"datePublished\":\"2024-04-24T05:18:21+00:00\",\"dateModified\":\"2024-05-06T09:10:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\"},\"wordCount\":722,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg\",\"keywords\":[\"Redis\",\"Ubuntu 22.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\",\"name\":\"How to Install Redis on Ubuntu 22.04 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg\",\"datePublished\":\"2024-04-24T05:18:21+00:00\",\"dateModified\":\"2024-05-06T09:10:58+00:00\",\"description\":\"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to Install Redis on Ubuntu 22\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Redis on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Redis on Ubuntu 22.04 - Greenwebpage Community","description":"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.","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:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Redis on Ubuntu 22.04 - Greenwebpage Community","og_description":"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-04-24T05:18:21+00:00","article_modified_time":"2024-05-06T09:10:58+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install Redis on Ubuntu 22.04","datePublished":"2024-04-24T05:18:21+00:00","dateModified":"2024-05-06T09:10:58+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/"},"wordCount":722,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg","keywords":["Redis","Ubuntu 22.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/","name":"How to Install Redis on Ubuntu 22.04 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg","datePublished":"2024-04-24T05:18:21+00:00","dateModified":"2024-05-06T09:10:58+00:00","description":"This blog will teach you how to install Redis on Ubuntu 22.04 LTS (Long Term Support) version.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/04\/How-to-Install-Redis-on-Ubuntu-22.jpg","width":1020,"height":600,"caption":"How to Install Redis on Ubuntu 22"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-redis-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install Redis on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=11344"}],"version-history":[{"count":1,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11344\/revisions"}],"predecessor-version":[{"id":11365,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11344\/revisions\/11365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/11366"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=11344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=11344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=11344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}