How to install redis extension in php7

一个新手
Release: 2023-03-16 13:58:01
Original
1463 people have browsed it

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.重启服务
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!