Redis 安装

yum install redis -y

在启动 redis-server 之前,你需要修改配置文件/etc/redis.conf

  • 找到 bind 127.0.0.1,将其注释,这样远程访问,同时加上 bind 0.0.0.0
  • 找到 requirepass foobared,将其注释,这样就能免密访问,如果不注释,密码就是foobared,建议自定义密码,不要注释这行;
    • 或者 redis-cli 进入客户端,config set requirepass <password> 定义密码;
  • 新版 redis 默认 protected mode 开启,在此情况下,必须给 redis 配置密码才能连接 RedisDesktopManager,如果不想给 redis 配置密码,需要修改为:protected-mode no

相关文章:

  • 2022-12-23
  • 2019-01-18
  • 2021-09-24
  • 2021-06-26
  • 2021-08-14
  • 2021-08-02
  • 2021-10-30
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2021-07-20
  • 2021-09-09
  • 2021-05-17
  • 2021-08-20
  • 2022-12-23
相关资源
相似解决方案