LoginSignup
5

More than 5 years have passed since last update.

Redisへの外部サーバからの接続許可設定方法

Posted at
  • 初めてredisを使ってみて、AP-DB構成配下で「Connection refused [tcp://192.168.xxx.xxx:6379]」エラーにしばらく悩まされたのでメモ。

設定方法

  • /etc/redis.confにbind項目を変更する。

    sed -i -e "s/^bind *127\.0\.0\.1$/bind 0\.0\.0\.0/g" /etc/redis.conf
    
    /etc/redis.conf
    - bind 127.0.0.1
    + bind 0.0.0.0
    

まぁ、

  • エラーメッセージに書かれてる通りだわな…蓋開けて見りゃ(汗

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5