{"id":20,"date":"2022-10-04T11:04:03","date_gmt":"2022-10-04T10:04:03","guid":{"rendered":"https:\/\/chigisoft.com\/blog\/?p=20"},"modified":"2023-07-15T14:23:44","modified_gmt":"2023-07-15T13:23:44","slug":"redis-redisinsight-installation-on-ubuntu-20-04-connection-to-redis-stack-server-docker-container-updated","status":"publish","type":"post","link":"https:\/\/chigisoft.com\/blog\/redis-redisinsight-installation-on-ubuntu-20-04-connection-to-redis-stack-server-docker-container-updated\/","title":{"rendered":"Redis: RedisInsight Installation on Ubuntu 20.04 &#038; Connection to Redis Stack Server Docker Container(updated)"},"content":{"rendered":"\n<p class=\"has-text-align-left\">Redis, a renowned key-value pair database, stands out for its exceptional speed, surpassing traditional SQL databases like PostgresSQl, MySQL, and CockroachDB. This remarkable performance is achieved through its impressive in-memory storage capability, placing it at the forefront of the NoSQL landscape. Redis has become a household name in the database realm, celebrated for its remarkable flexibility and user-friendly nature.<\/p>\n\n\n\n<h2 id=\"benefits-of-redisinsight-installation\" class=\"wp-block-heading has-text-align-left\">Benefits of RedisInsight Installation<\/h2>\n\n\n\n<p>Redis finds application in various scenarios, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enhancing throughput and reducing database queries through data caching.<\/li>\n\n\n\n<li>Enabling real-time message streaming by supporting Streaming Data Architecture through the Publisher\/Subscriber technique.<\/li>\n\n\n\n<li>Facilitating real-time analytics, allowing for swift retrieval, visualization, and processing of data with minimal latency.<\/li>\n<\/ul>\n\n\n\n<p>Redis is adored by developers for its lightweight nature and open-source nature, accompanied by a thriving community. It offers robust support for numerous popular programming languages, including Python, JavaScript, Go, Java, PHP, and more. With Redis, storing and retrieving data becomes effortless, requiring just a few lines of code. Furthermore, Redis boasts a rich array of data structures that empower developers to manipulate data efficiently. Perhaps the most captivating aspect of Redis is its in-memory store, which significantly minimizes latency to mere milliseconds, resulting in remarkably swift response times.<\/p>\n\n\n\n<p>Redis demonstrates excellent compatibility across operating systems such as Linux, Windows, and Mac OS. However, it particularly excels in efficiency when deployed on Linux-based operating systems.<\/p>\n\n\n\n<h2 id=\"redisinsight-installation\" class=\"wp-block-heading\">RedisInsight Installation<\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/redis.com\/redis-enterprise\/redis-insight\/\" target=\"_blank\" rel=\"noopener\">RedisInsight<\/a> <\/strong>serves as a desktop GUI client that establishes a connection to your Redis Server, presenting you with a user-friendly interface for visualizing your Redis databases. This client empowers you to conveniently utilize the RedisInsight GUI on your local machine.<\/p>\n\n\n\n<p>The objective of this tutorial is to guide you through the process of configuring RedisInsight on your PC and establishing a connection to your Redis Stack Server Docker container. Without delay, let&#8217;s delve into the steps involved in setting up RedisInsight on your system.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"231\" data-id=\"340\" src=\"https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/06\/RedisInsight-Installation-on-Ubuntu-20.04-Connection-to-Redis-Stack-Server-Docker-Containerupdated.png\" alt=\"\" class=\"wp-image-340\" srcset=\"https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/06\/RedisInsight-Installation-on-Ubuntu-20.04-Connection-to-Redis-Stack-Server-Docker-Containerupdated.png 394w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/06\/RedisInsight-Installation-on-Ubuntu-20.04-Connection-to-Redis-Stack-Server-Docker-Containerupdated-300x176.png 300w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/06\/RedisInsight-Installation-on-Ubuntu-20.04-Connection-to-Redis-Stack-Server-Docker-Containerupdated-390x229.png 390w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 id=\"steps-for-redisinsight-installation\" class=\"wp-block-heading\">Steps for RedisInsight Installation<\/h3>\n\n\n\n<h4 id=\"step-1-redisinsight-installation\" class=\"wp-block-heading\">Step 1 RedisInsight Installation:<\/h4>\n\n\n\n<h5 id=\"prerequisite\" class=\"wp-block-heading\">Prerequisite<\/h5>\n\n\n\n<p>To install Redis using Docker, it is essential to have root user privileges on your Linux operating system and ensure that the <a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/\" target=\"_blank\" rel=\"noopener\">Docker Engine is installed<\/a> and operational on your computer.<\/p>\n\n\n\n<p>For detailed information about the Redis Stack Server, you can refer to the<a href=\"https:\/\/redis.io\/docs\/stack\/get-started\/install\/docker\/\" target=\"_blank\" rel=\"noopener\"> documentation provided here.<\/a><\/p>\n\n\n\n<h4 id=\"step-2-redisinsight-installation\" class=\"wp-block-heading\">Step 2 RedisInsight Installation<\/h4>\n\n\n\n<h5 id=\"docker-image\" class=\"wp-block-heading\">Docker Image<\/h5>\n\n\n\n<p>Open your terminal and execute the following command to install the Redis Stack Server docker image. I recommend utilizing this stack as it offers the convenience of managing both your local and remote Redis database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><br><code>$ sudo docker run -d --name redis-stack-server -p 6379:6379 redis\/redis-stack-server:latest<\/code><\/code><\/pre>\n\n\n\n<p>To verify a successful download of your redis-stack-server image, you need to access the shell of your redis-stack-server container.<\/p>\n\n\n\n<p>Ensure that your container is up and running by executing the following command, which will display a list of both running and non-running Docker containers.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ docker ps -a<\/code><\/pre>\n\n\n\n<p>In case your container is not currently running, utilize the following command to initiate its startup.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ docker container start redis-stack-server<\/code><\/pre>\n\n\n\n<p>Once your redis-stack-server is operational, establish an SSH connection into the redis-stack-server container.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo docker exec -it redis-stack-server sh<\/code><\/pre>\n\n\n\n<p>To verify the proper functionality of the Redis server within the container, employ the client command line (CLI) to initiate a ping to the Redis server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127.0.0.1:6379&gt; ping<\/code><\/pre>\n\n\n\n<p>Output<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PONG<\/code><\/pre>\n\n\n\n<p>Click <strong><a href=\"https:\/\/redis.com\/redis-enterprise\/redis-insight\/#insight-form\" target=\"_blank\" rel=\"noopener\">here<\/a><\/strong> to download the Redis GUI.<\/p>\n\n\n\n<p>Once you have successfully downloaded the RedisInsight client, it will automatically establish a connection with your Redis Stack Server. Remember that our Redis Stack Server is housed within a Docker container. To establish the connection between RedisInsight and your Redis Stack Server Docker container, ensure that the container is running. Navigate to your terminal and change the directory (CD) to the location where you have downloaded the RedisInsight file. Then, make the file executable.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo chmod +x redisinsight-linux64-&lt;version&gt;<\/code><\/pre>\n\n\n\n<p><em><strong>Your file name should be the same as the one you downloaded<\/strong><\/em>.<\/p>\n\n\n\n<h5 id=\"e-g\" class=\"wp-block-heading\">E.g<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo chmod +x RedisInsight-v2-linux-x86_64.AppImage<\/code><\/pre>\n\n\n\n<p>To initiate RedisInsight, you can either double-click on the file or utilize the provided command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/RedisInsight-v2-linux-x86_64.AppImage<\/code><\/pre>\n\n\n\n<p>The interface will showcase your local Redis database instances (if any are available).<\/p>\n\n\n\n<h4 id=\"step-3-redisinsight-installation\" class=\"wp-block-heading\"><br>Step 3 RedisInsight Installation<\/h4>\n\n\n\n<h5 id=\"redis-cloud\" class=\"wp-block-heading\">Redis Cloud<\/h5>\n\n\n\n<p>To establish a connection with your remote Redis database on Redis Cloud, navigate to RedisInsight and click on &#8220;Add Redis Database&#8221; located at the top left corner of the screen. A form will appear on the right side where you can input your Redis Cloud database details. Paste the public endpoint URL into the &#8220;Host&#8221; field of the form, and the remaining fields will be automatically populated with your database credentials.<\/p>\n\n\n\n<p>Congratulations! We have successfully completed the process.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?export=view&amp;id=1hkuu8bQit4Edt-3OVsOyK87n_Kp2FSm0\" alt=\"\"\/><figcaption class=\"wp-element-caption\">RedisInsight GUI<\/figcaption><\/figure>\n\n\n\n<p>Drop your feedback and questions. I am in the comment section \ud83d\ude09<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/learn.chigisoft.com\/product-design\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" data-id=\"504\" src=\"https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-1024x414.png\" alt=\"\" class=\"wp-image-504\" srcset=\"https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-1024x414.png 1024w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-300x121.png 300w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-768x310.png 768w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-390x158.png 390w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-820x331.png 820w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023-1180x477.png 1180w, https:\/\/chigisoft.com\/blog\/wp-content\/uploads\/2023\/07\/Product-Bootcamp-Registration-2023.png 1332w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><em><strong>This post is in collaboration with <a href=\"https:\/\/redis.io\/\" target=\"_blank\" rel=\"noopener\">Redis<\/a><\/strong><\/em><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/redis.com\/try-free\/?utm_campaign=write_for_redis\" target=\"_blank\" rel=\"noopener\">Try Redis Cloud for free<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/redis.info\/3LC4GqB\" target=\"_blank\" rel=\"noopener\">Redis Developer Hub &#8211; tools, guides, and tutorials about Redis<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/redis.info\/3wMR7PR\" target=\"_blank\" rel=\"noopener\">RedisInsight Desktop GUI<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/redis.info\/3Ga9YII\" target=\"_blank\" rel=\"noopener\">Watch this video on the benefits of Redis Cloud over other Redis providers<\/a><\/strong><\/p>\n\n\n\n<p>Feel free to reach out to <a href=\"https:\/\/chigisoft.com\/\">our team of experts at Chigisoft <\/a>for guidance and assistance. We are more than happy to provide you with the support you need for RedisInsight Installation.<\/p>\n","protected":false},"excerpt":{"rendered":"Redis, a renowned key-value pair database, stands out for its exceptional speed, surpassing traditional SQL databases like PostgresSQl, MySQL, and CockroachDB. This remarkable performance is achieved through its impressive in-memory&hellip;\n","protected":false},"author":3,"featured_media":68,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,14],"tags":[10,11,9,12],"class_list":{"0":"post-20","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tech","8":"category-devops","9":"tag-devops","10":"tag-linux","11":"tag-redis","12":"tag-ubuntu"},"_links":{"self":[{"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":11,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":505,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions\/505"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/media\/68"}],"wp:attachment":[{"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chigisoft.com\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}