一、修改redis.conf文件

  1、设置连接密码

redis远程密码连接

  2、修改ip(默认是127.0.0.1)及端口。

redis远程密码连接
二、指定配置文件启动redis。
  src/redis-server ./redis.conf   #指定redis.conf作为启动配置文件
三、远程连接redis
  src/redis-cli -h 192.168.124.145 -p 15163 -a 123456

相关文章:

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