1、检查是否有redis yum 源

yum install redis

2、下载fedora的epel仓库

yum install -y epel-release

3、安装redis数据库


yum install redis

4、启动redis

systemctl start redis.service
 

5、设置开机自启动

chkconfig redis on

6、修改配置文件

vim /etc/redis.conf

修改默认密码,查找 requirepass foobared 将 foobared 修改为你的密码

vim /etc/redis.conf

找到 bind 127.0.0.1 将其注释

找到 protected-mode yes 将其改为

protected-mode no

Centos7下安装redis

7、重启redis

systemctl restart redis.service

相关文章:

  • 2021-10-11
  • 2021-10-04
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2021-11-01
  • 2021-10-10
  • 2021-06-07
相关资源
相似解决方案