Redis remote access refuse connection

This article mainly introduces the small problems that may occur when redis performs remote access.

Could not connect to Redis at 192.168.0.33:6379: Connection refused


The above content is the content of the error report.

There may be two possibilities for encountering the above error.

1. Firewall is not turned off

2. The bind parameter of the configuration file is not modified. In the configuration file, only local ip is allowed to access redis by default, which can be understood as a protection mechanism.

Now you can comment out the bind parameter, but it should be noted that if it is in a production environment, it is best to configure the ip of this bind, otherwise there may be data leakage problems.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325590849&siteId=291194637