在RockyLinux OS 9上安装Redis 7(通过AppStream)

首先

使用Application Stream(AppStream)在RockyLinux OS 9上安装Redis 7。

支持

如果使用本方法进行导入,根据Red Hat Enterprise Linux Application Streams Life Cycle-Red Hat Customer Portal,2026-11可能会成为EOL(生命周期结束)时间点。
之后可能不会进行对报告的漏洞和问题的处理。

登录

安装

# cat /etc/redhat-release
Rocky Linux release 9.3 (Blue Onyx)

# yum module list redis
Last metadata expiration check: 0:04:45 ago on Thu Nov 23 05:27:33 2023.
Rocky Linux 9 - AppStream
Name                  Stream                Profiles                  Summary
redis                 7                     common [d]                Redis persistent key-value database

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# yum module install -y redis:7
... 略

各种确认 – .

# which redis-server
/usr/bin/redis-server

# /usr/bin/redis-server -v
Redis server v=7.0.12 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=fc0dd1598e160a57

# yum info redis
Last metadata expiration check: 0:07:04 ago on Thu Nov 23 05:27:33 2023.
Installed Packages
Name         : redis
Version      : 7.0.12
Release      : 1.module+el9.3.0+15782+e7b53f1b
Architecture : x86_64
Size         : 5.7 M
Source       : redis-7.0.12-1.module+el9.3.0+15782+e7b53f1b.src.rpm
Repository   : @System
From repo    : appstream
Summary      : A persistent key-value database
URL          : https://redis.io
License      : BSD-3-Clause AND BSD-2-Clause AND MIT
Description  : Redis is an advanced key-value store. It is often referred to as a data
             : structure server since keys can contain strings, hashes, lists, sets and
             : sorted sets.
             :
             : You can run atomic operations on these types, like appending to a string;
             : incrementing the value in a hash; pushing to a list; computing set
             : intersection, union and difference; or getting the member with highest
             : ranking in a sorted set.
             :
             : In order to achieve its outstanding performance, Redis works with an
             : in-memory dataset. Depending on your use case, you can persist it either
             : by dumping the dataset to disk every once in a while, or by appending
             : each command to a log.
             :
             : Redis also supports trivial-to-setup master-slave replication, with very
             : fast non-blocking first synchronization, auto-reconnection on net split
             : and so forth.
             :
             : Other features include Transactions, Pub/Sub, Lua scripting, Keys with a
             : limited time-to-live, and configuration settings to make Redis behave like
             : a cache.
             :
bannerAds