一、安装编译工具
这样就安装成功了
启动redis
1、下载php-redis zip安装包
https://github.com/nicolasff/phpredis
2、找到PHP安装路径
命令whereis phpize和whereis php-config 找到phpize和php-config路径
立即学习“PHP免费学习笔记(深入)”;
3、生成configure
4、编译安装
5、加入安装的redis.so模块
7、测试
去看下错误日志~
你的php是VC6编译的
你的php_redis.dll是VC9编译的
导致不兼容。
找个VC6的php_redis.dll
或
重装个VC9的php
都可以。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号