Solve the problem of redis remote connection failure

After we install redis on computer A, there is no problem in using it on computer A. But now we need computer B to be able to use redis of computer A. At this time, we need to use remote connection.
Insert image description here
solve:

Step 1, find the redis installation directory and edit the redis.windows.conf file

Insert image description here

Step 2. In the file content, find bind 127.0.0.1 and delete or comment it out. I choose annotation

Insert image description here

Step 3. In the file content, find protected-mode and set its attribute to no

Insert image description here

Step 4. After saving, restart the redis service, and then use computer B to test the connection (successful)

Insert image description here

Guess you like

Origin blog.csdn.net/qq_45752401/article/details/125261499