Installing extensions
Note: The first time using a non-root
user did not succeed. Switching to a root
user will succeed
Download the expansion package, find the matching version, wget
Download to the server
Unzip and enter the directory tar zxf redis-4.0.1.tgz
, cd redis-4.0.1
;
Find phpize
and execute
Find php-config
and configure
##make && make install, after compilation
redis.io has been extended in
/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/ The directory is in;
php.ini Add
extension=redis
php -m
The above is the detailed content of How to install PHP7 Redis extension on CentOS7. For more information, please follow other related articles on the PHP Chinese website!