【英文】Redis允许远程访问

Preface

Configuring Redis to allow remote access
Solution to the error “Could not connect to Redis at 192.168.x.x:6379: Connection refused” during remote login to Redis

Body

  • Modify the configuration file redis.config, change 127.0.0.1 to 0.0.0.0 on line 87
/opt/homebrew/etc/redis.conf
1
bind 0.0.0.0 ::1
  • Restart Redis service
1
brew services restart redis

Done

References

Zhihu - Yang Bai Cai