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 aboveLinux:
点击前面的版本号,如: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.
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...
https://pecl.php.net/package/... There are instructions here
View the following items via phpinfo();
System Linux ,NTS
Windows:
Select according to the bold part above Linux:
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.