使用 RDM 连接 Homestead 中的 Redis

使用 RDM 连接 Homestead 中的 Redis

安装RDM

https://redisdesktop.com/download

修改 redis.conf

1
$ sudo vim /etc/redis/redis.conf
  1. 将bind 127.0.0.1 ::1 改成 bind 0.0.0.0 ::1
  2. 将 requirepass 前面的 # 号去掉,后面加上一个密码,例如:
1
requirepass yourpassword

修改 Homestead.yaml
添加端口转发

1
2
3
ports:
    - send: 63790
    to: 6379

重启虚拟机

1
$ vagrant reload --provision

赞赏