Linux mint install redis

redis on Linux Mint 20.3 «Una»

This is a short guide on how to install redis package:

2. Uninstall / Remove redis package

Here is a brief guide to show you how to uninstall redis package:

3. Details of redis package

Package: redis
Architecture: all
Version: 5:5.0.7-2ubuntu0.1
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Chris Lamb
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 62
Depends: redis-server ( = 5:5.0.7-2ubuntu0.1)
Filename: pool/universe/r/redis/redis_5.0.7-2ubuntu0.1_all.deb
Size: 3064
MD5sum: 9d6b7b4472e373b4f53a265cd1c3763a
SHA1: 7e56fad929171d25eea5c485a4d6b91d822831ed
SHA256: 31e1523d7a88502f301ce54b8234b8353aad7fa9b31948562c4531fa375efbe7
SHA512: a469477dd8919ec8e593db9f702a8ef813164b13bf9a85cb75b4f23bf970dda7bdc79a5f533437ed493c237000ad50df9891a10ef0b482183043c2bf3593026c
Homepage: https://redis.io/
Description: Persistent key-value database with network interface (metapackage)
Description-md5: 1f71827385593ea66e6e88a41b6c85b5

Package: redis
Architecture: all
Version: 5:5.0.7-2
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Chris Lamb
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 62
Depends: redis-server ( = 5:5.0.7-2)
Filename: pool/universe/r/redis/redis_5.0.7-2_all.deb
Size: 3048
MD5sum: 79c59dc4e01b126763ed6a9fa44a5867
SHA1: fa20a81af3534d574dffd74fc451cd444431f70f
SHA256: fd205fc8011f051fdbb2443cb3ca67cccb8c2ebf561474dd4046bd2d71c7ab1a
Homepage: https://redis.io/
Description: Persistent key-value database with network interface (metapackage)
Description-md5: 1f71827385593ea66e6e88a41b6c85b5

4. References on Linux Mint 20.3 «Una»

5. The same packages on other Linux Distributions

redis (5:4.0.9-1ubuntu0.2) Ubuntu 18.04 LTS (Bionic Beaver)

redis (5:6.0.6-1) Ubuntu 20.10 (Groovy Gorilla)

redis (5:6.0.15-1) Ubuntu 21.10 (Impish Indri)

redis (6.0.14-6.8.1) openSUSE Leap

redis (6.2.6-2.1) openSuSE Tumbleweed

redis (5:6.0.16-1ubuntu1) Ubuntu 22.04 LTS (Jammy Jellyfish)

redis (5:5.0.14-1+deb10u2) Debian 10 (Buster)

Источник

Install Redis on Linux Mint

“Redis is an open-source, in-memory data structure solution. It’s a high-speed non-relational database that supports mapping keys to different types of values. Thanks to its high-performance storage, Redis is suitable for numerous applications, for example, caching & session storage.”

In this guide, we will explore installing Redis on Linux Mint.

Redis on Linux Mint

Linux Mint is one of the most popular Linux distros that focuses on being simple and user-friendly. Because it’s based on Ubuntu, Linux Mint takes advantage of the Ubuntu repositories for its packages. Learn more about Linux Mint.

Читайте также:  Linux check what groups user is in

This offers two different options when it comes to installing Redis:

Installing Redis From the Ubuntu Repo

This is the easiest way of installing Redis. All we have to do is to tell the package manager (APT) to install the Redis package (redis-server).

The command is as follows:

If you prefer to use GUI, then you can also install Redis from Software Manager.

Installing Redis From the Redis Repo

Ubuntu releases package updates after rigorous testing (stability, bugs, and others). In many situations, this adds additional delays before the latest version of the package is available from the repo.

To avoid this release delay, many developers offer third-party repos. In the case of Redis, there’s a dedicated PPA available (ppa:redislab/redis). Run the following command to add the repo:

Update the APT cache and install Redis:

If you added the Redis PPA, then Software Manager should also pick it up.

Installing Redis Snap

Redis is also available as a snap package on Snapcraft.

This method comes with a couple of advantages:

  • No need to worry about having the latest version of Redis. Snappy (the snap package manager) keeps installed snaps updated.
  • No need to configure additional repositories.

Snap comes pre-installed on Linux Mint. Refer to the official documentation if you need help installing snap on Linux Mint.

The following command will install the Redis snap package:

Building and Installing Redis From Source

Redis is open-source software. The source code is available under the BSD license. We can compile and install Redis from the source code with the right tools.

However, this approach comes with some downsides. You have to manage the installation manually. It’s only recommended for developers and advanced users.

First, install the necessary tools and libraries needed to compile the source code:

Grab the source code of the latest stable release:

The following command will run some tests to verify if the compilation was successful. Note that the test requires an additional dependency (tcl).

If the testing went successful, we can now install it. Run the following command:

If you decide to uninstall this installation, use the following command:

Configuring Redis

Before we start using Redis, there are some configurations that need to be done.

We want systemd to manage the Redis service. It requires some tweaking in the Redis configuration file (redis.conf). If you installed Redis from the source, then redis.conf will be located in the source directory. Otherwise, it will be located at the following location:

Читайте также:  Linux mint light theme

Change the value of the directive supervised to systemd:

Save the file and close the editor. Restart the Redis service to take the change into effect:

Finally, check the Redis service status:

Verifying Redis Installation

This step will perform some basic Redis tasks to verify if the installation procedure was successful.

Launch the interactive Redis shell:

Use the PING command to test the server connection:

Next, we need to test if Redis can store key-value pairs. We will register a key test with the value “the quick brown fox”:

Try retrieving the value of the key:

Final Thoughts

This guide explored multiple ways of installing Redis on Linux Mint from different sources. While it’s directly available from the official package repo, Redis also has a dedicated PPA. Alternatively, we can also install and use Redis as a snap package. For advanced users and developers, Redis can also be installed from the source code.

Interested in learning more about Redis? Check out the Redis sub-category for more Redis guides, for example, using the Redis CLI, Redis with LUA scripting, partitioning, etc.

About the author

Sidratul Muntaha

Student of CSE. I love Linux and playing with tech and gadgets. I use both Ubuntu and Linux Mint.

Источник

redis on Linux Mint 21 «Vanessa»

This guide let you learn how to install redis package:

2. Uninstall / Remove redis package

This guide covers the steps necessary to uninstall redis package:

3. Details of redis package

Package: redis
Architecture: all
Version: 5:6.0.16-1ubuntu1
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Chris Lamb
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 66
Depends: redis-server ( = 5:6.0.16-1ubuntu1)
Filename: pool/universe/r/redis/redis_6.0.16-1ubuntu1_all.deb
Size: 2930
MD5sum: c5a37d58f8f757ada5049ec81ae1f368
SHA1: c3790b389f6082cf6433cd0b1855b7c81080111b
SHA256: 41b1db68a2af8e37369e82336f739c16f0dc0348ce250c0dc1ded06534347201
SHA512: 37d4fa77af6b32a3a8d9470d105fd22d5f4825cffa9a3268fd4c115e9deb3ec64ecf684ba6fdc101f671f773e3ab53f5ccc74d6784476303c5a3084453214450
Homepage: https://redis.io/
Description: Persistent key-value database with network interface (metapackage)
Description-md5: 72899f2d2b6ae85236d34c82a94ea222

4. References on Linux Mint 21 «Vanessa»

5. The same packages on other Linux Distributions

redis (5:4.0.9-1ubuntu0.2) Ubuntu 18.04 LTS (Bionic Beaver)

redis (5:6.0.6-1) Ubuntu 20.10 (Groovy Gorilla)

redis (5:6.0.15-1) Ubuntu 21.10 (Impish Indri)

redis (6.0.14-6.8.1) openSUSE Leap

redis (6.2.6-2.1) openSuSE Tumbleweed

redis (5:6.0.16-1ubuntu1) Ubuntu 22.04 LTS (Jammy Jellyfish)

redis (5:5.0.14-1+deb10u2) Debian 10 (Buster)

Источник

How to Install and Use Redis on Linux Mint

To start Redis client, open the terminal and type the command redis-cli. This will connect to your local server and now you can run any command. In the above example, we connect to Redis server running on the local machine and execute a command PING, that checks whether the server is running or not.

Can’t connect to Redis?

Firewall restriction is another common reason that can trigger the “could not connect to Redis connection refused”. By default Redis server listen to the TCP port 6379. If another application is using the port or if the firewall restrictions blocks the port, it can trigger the connection refused error.

Читайте также:  Просмотр сервисов в линукс

How do I install Redis Desktop Manager on Windows?

  1. Install Visual Studio 2013 Community with Update 5.
  2. Install Qt 5.6.
  3. Download RDM dependencies cd ./src and run configure.bat.
  4. Open ./src/rdm.pro in Qt Creator.
  5. Run build.

Is Redis a NoSQL database?

According to monthly DB-Engines rankings, Redis is often the most popular key-value database. Redis has also been ranked the #4 NoSQL database in user satisfaction and market presence based on user reviews, the most popular NoSQL database in containers, and the #4 Data store of 2019 by ranking website stackshare.io.

What is Redis in Linux?

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

How do I know if Redis is installed?

  1. Redis version. In order to check which Redis version your machine is running, execute the following command from the console: redis-server -v.
  2. Redis configuration file. The Redis configuration file is located at installdir/redis/etc/redis. conf.
  3. Redis port. The default port on which Redis listens is 6379.

What app store does Linux use?

Flathub—An app store and build service for Linux.

Does Linux have App Store?

Linux doesn’t need to make a change. . There’s no one operating system called Linux that you can install on your computer. Instead, you download Linux distributions that each do things a slightly different way. That means there’s no one app store you will encounter in the Linux world.

What is Linux Mint based on?

Linux Mint is a community-driven Linux distribution based on Ubuntu (in turn based on Debian), bundled with a variety of free and open-source applications.

How To Install ELK Stack on CentOS 7 / Fedora 31/30/29

Install

Please follow our steps below to install and configure ELK stack tools on CentOS 7 / Fedora 31/30/29 Linux.Step 1: Install Java. . Step 2: Add ELK r.

How to Install and Use FFmpeg on Debian 10

Ffmpeg

The following steps describe how to install FFmpeg on Debian 10:Start by updating the packages list as root or user with sudo privileges : sudo apt up.

Difference Between apt and apt-get Explained

Apt-get

What is the difference between apt-get and apt-get?What should I use apt or apt-get?Why do people still use apt-get?What is in Apt-get?Should I use sn.

Latest news, practical advice, detailed reviews and guides. We have everything about the Linux operating system

Источник

Оцените статью
Adblock
detector