Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 33 章 Redis 安装

目录

33.1. Rocky Linux
33.2. CentOS 8 Stream
33.3. CentOS 7
33.4. CentOS 6
33.4.1. 主从同步
33.4.2. Sentinel
33.5. Ubuntu
33.6. Mac 安装 Redis
33.7. 源码编译安装
33.8. Test Redis

33.1. Rocky Linux

			
cat >> /etc/yum.repos.d/redis.repo <<EOF
[Redis]
name=Redis
baseurl=http://packages.redis.io/rpm/rockylinux9
enabled=1
gpgcheck=1
EOF

curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key
sudo rpm --import /tmp/redis.key
			
			
			
[root@netkiller ~]# dnf info redis
Redis                                                                                                                                                                                       198  B/s | 3.2 kB     00:16    
Available Packages
Name         : redis
Version      : 8.2.1
Release      : 1
Architecture : aarch64
Size         : 29 M
Source       : redis-8.2.1-1.src.rpm
Repository   : Redis
Summary      : Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs,
             : Bitmaps.
URL          : https://redis.io/
License      : 
Description  : Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs,
             : Bitmaps.

Name         : redis
Version      : 8.2.1
Release      : 1
Architecture : x86_64
Size         : 30 M
Source       : redis-8.2.1-1.src.rpm
Repository   : Redis
Summary      : Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs,
             : Bitmaps.
URL          : https://redis.io/
License      : 
Description  : Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs,
             : Bitmaps.			
			
			
			
[root@netkiller ~]# dnf install redis
[root@netkiller ~]# systemctl enable redis
[root@netkiller ~]# systemctl start redis