Home >Backend Development >PHP Tutorial >How to install redis extension in php7
1.wget https://github.com/phpredis/phpredis/archive/php7.zip//下载 2.unzip php7.zip //注意 如果unzip使用不了 要先安装 yum install zip unzip 3.cd phpredis-php7 目录 4.phpize 生成编译文件 //如果phpize不好用 可以参考http://www.cnblogs.com/88phper/p/7530018.html里面有对phpize的处理 5.执行./configure 6.make && make install 7.php.ini 添加 extension=redis.so 8.重启服务
The above is the detailed content of How to install redis extension in php7. For more information, please follow other related articles on the PHP Chinese website!