Home  >  Article  >  Database  >  What is the method to install Redis extension for Linux in PHP7.2

What is the method to install Redis extension for Linux in PHP7.2

WBOY
WBOYforward
2023-05-31 12:46:061020browse

Copy the link address, download, decompress, compile and install

[root@zzming soft]# wget http://pecl.php.net/get/redis-4.2.0.tgz
[root@zzming soft]# tar -xzvf redis-4.2.0.tgz
[root@zzming soft]# cd redis-4.2.0
[root@zzming redis-4.2.0]# phpize
[root@zzming redis-4.2.0]# ./configure --with-php-config=/usr/local/php7.2/bin/php-config
[root@zzming redis-4.2.0]# make && make install

./configure --with-php-config=/usr/local/php7.2/bin/php-config Be sure to read this code clearly php7.2 or php

The above is the detailed content of What is the method to install Redis extension for Linux in PHP7.2. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete