How to install PHP7 Redis extension on CentOS7

How to install PHP7 Redis extension on CentOS7

Introduction

In the previous article, we installed and configured Redis, but it is not over yet. We also need to install the PHP extension.

Installing the extension

Note: The first use of non- root user did not succeed, and using the root user will succeed

  1. Download the extension package, find the matching version here, and use wget to download it 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

Find php-config and configure

make && make install . After compilation, redis.io is already in the /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/ extension directory.

Modify php.ini and add extension=redis

Restart PHP

php -m 

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed tutorial on installing php-fpm service/extension/configuration in docker
  • Detailed explanation of installation and configuration of Redis and phpredis extension operation in Ubuntu 18.04 system
  • Detailed steps to install xml extension in php under linux
  • Solve the problem that PHP extension installation does not take effect
  • Detailed installation of PHP environment and extensions on Mac
  • Mac pecl installation php7.1 extension tutorial
  • Detailed explanation of how to install PHP curl extension under Linux
  • How to install memcache extension in PHP
  • How to install BCMath extension in PHP
  • PHP extension installation method and steps analysis

<<:  Summary of common problems and application skills in MySQL

>>:  How to implement the builder pattern in Javascript

Recommend

How to split and merge multiple values ​​in a single field in MySQL

Multiple values ​​combined display Now we have th...

10 tips for designing useful, easy-to-use web applications

Here are 10 tips on how to design better-usable w...

Detailed explanation of MySQL custom functions and stored procedures

Preface This article mainly introduces the releva...

Introduction and usage examples of ref and $refs in Vue

Preface In JavaScript, you need to use document.q...

TCP socket SYN queue and Accept queue difference analysis

First we must understand that a TCP socket in the...

How to build a Vue3 desktop application

In this article, we will look at how to develop a...

Install Tomcat on Linux system and configure Service startup and shutdown

Configure service startup and shutdown in Linux s...

Realize super cool water light effect based on canvas

This article example shares with you the specific...

How to check disk usage in Linux

1. Use the df command to view the overall disk us...

Detailed explanation of Angular component projection

Table of contents Overview 1. Simple Example 1. U...

JavaScript basics of this pointing

Table of contents this Method In the object Hidde...

Sample code for implementing Alipay sandbox payment with Vue+SpringBoot

First, download a series of things from the Alipa...