php linkRedis
.....
..... 2018-04-08 08:48:58
0
4
1533

When working on a redis cluster, my slave terminal always shows that the master is down

And my master also shows that no slave is connected

Please give me some advice

Note: Mine is centos 7 and redis is version 3.0.0 php5.4. I use a virtual machine


.....
.....

reply all(1)
猪哥

Have you tested it on a single machine?


  • reply I just learned Redis and have never understood stand-alone testing. . . . The Redis cluster worked fine before. After I enabled the sentry mode, I found that sentile was not easy to use and restored some Redis configurations. When I used PHP to connect to Redis, I used $redis->connect( '127.0.0.1'); There was a problem with this code. The centos system did not report an error (even if I started the error reporting function of PHP, it was useless). The code just ran to $redis->connect('127.0. 0.1'); unable to run
    ..... author 2018-04-08 13:15:56
  • reply To explain, there is nothing wrong with my instantiation of Redis, and the results can be printed out, but there is a problem when linking. Then I will take a look at my Redis service and take a look. My master actually shows the down status...
    ..... author 2018-04-08 13:18:06
  • reply Just like the php link cannot be connected, but the Redis slave in the terminal also displays the master as down. There is no problem when I operate on the master.
    ..... author 2018-04-08 13:20:13
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template