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

Teach you how to use docker-maven-plugin to automate deployment

1. Introduction to docker-maven-plugin In our con...

A brief discussion on the problem of Docker run container being in created state

In a recent problem, there is such a phenomenon: ...

Analysis of centos6 method of deploying kafka project using docker

This article describes how to use docker to deplo...

MySQL grouping queries and aggregate functions

Overview I believe we often encounter such scenar...

Summary of Linux file directory management commands

touch Command It has two functions: one is to upd...

JavaScript implements product details of e-commerce platform

This article shares a common example of viewing p...

uniapp realizes the recording upload function

Table of contents uni-app Introduction HTML part ...

Detailed explanation of the steps to create a web server with node.js

Preface It is very simple to create a server in n...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

Study notes to write the first program of Vue

Table of contents 1. Write an HTML, the first Vue...

MySQL 8.0.19 installation and configuration method graphic tutorial

This article records the installation and configu...

Summary of tips for setting the maximum number of connections in MySQL

Method 1: Command line modification We only need ...

What you need to know about MySQL auto-increment ID

Introduction: When using MySQL to create a table,...