Home >Backend Development >PHP Tutorial >How to install redis extension in php7

How to install redis extension in php7

一个新手
一个新手Original
2017-10-02 19:43:271528browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn