search

Home  >  Q&A  >  body text

phpredis版本是如何对应redis版本?

我的phpredis版本2.1.x,redis版本是2.8.6,能配吗?

怪我咯怪我咯2844 days ago1302

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-04-27 09:05:14

    phpredis 2.1.x and Redis 2.8.6 are compatible.

    As long as the communication protocol of Redis remains unchanged, there is basically no problem.

    Reference:
    https://pecl.php.net/package-...
    http://doc.redisfans.com/topi...

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-04-27 09:05:14

    https://pecl.php.net/package/... There are instructions here
    View the following items via phpinfo();

    System Linux ,NTS
    Windows:

    点击 DLL 进入页面,下面会有 依赖(Dependencies)说明

    Select according to the bold part above Linux:

    点击前面的版本号,如:2.2.8 进入详细页,查看 发行说明(Release notes Version 2.2.8(stable))

    Follow the instructions to check whether your php version matches the version of phpredis, and then you can install it.

    When the installation is complete and you modify php.ini, check the Configuration File (php.ini) Path item in phpinfo to determine the location of php.ini. If it is not in the directory, you can make a copy. What I mean here is don’t change the wrong place. , I have made this mistake myself, it is quite disgusting.

    reply
    0
  • Cancelreply