Home  >  Article  >  Database  >  How to install PHP7 Redis extension on CentOS7

How to install PHP7 Redis extension on CentOS7

WBOY
WBOYforward
2023-06-02 11:46:061170browse

Installing extensions

Note: The first time using a non-root user did not succeed. Switching to a root user will succeed

  1. Download the expansion package, find the matching version, wget Download to the server

  2. Unzip and enter the directory tar zxf redis-4.0.1.tgz, cd redis-4.0.1;

  3. Find phpize and execute

CentOS7怎么安装PHP7 Redis扩展

Find php-config and configure

CentOS7怎么安装PHP7 Redis扩展

##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;

Modify

php.ini Add extension=redis

Restart php

php -m

CentOS7怎么安装PHP7 Redis扩展

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!

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