search

Home  >  Q&A  >  body text

php linkRedis

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


..........2464 days ago1547

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2018-04-08 12:59:13

    Have you tested it on a single machine?


    reply
    0
  • .....

    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

    ..... · 2018-04-08 13:15:56
    .....

    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...

    ..... · 2018-04-08 13:18:06
    .....

    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.

    ..... · 2018-04-08 13:20:13
  • Cancelreply