Home > Database > Redis > body text

How to install PHP7 Redis extension on CentOS7

WBOY
Release: 2023-06-02 11:46:06
forward
1182 people have browsed it

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
Copy after login

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!

Related labels:
source:yisu.com
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