CentOS Stream 9安装redis


安装redis

dnf install redis

查看redis版本

redis-server --version
Redis server v=6.2.7 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=ec192bdd77ecd321

启动redis

systemctl start redis.service

设置redis开机自启

systemctl enable redis

redis默认配置文件为:/etc/redis/redis.conf