Open In App

How to Install phpRedis for CentOS?

Improve
Improve
Like Article
Like
Save
Share
Report

Redis is an open-source software used by developers. It is used as a database, and cache broker. Redis is basically an in-memory data store application. Redis is highly used for its speed. As it has high speed, it is preferred by most developers for caching databases queries. It is used for complex computation and API calls also. Redis gives a feature that it has stream data available. High stream data enables high-speed data ingestion. CentOS is a stable, predictable platform. Basically, it is an upstream development platform. Which helps to develop, test, and contribute to a continuously delivered distribution. CentOS is a part of the Linux OS. But it can work independently. Before installing Redis, CentOS should be installed on the machine.

Features:

  • It is widely famous for its data structures server and provides support for strings, hashes & other many more.
  • It is used for building custom extensions to Redis in C, C++, etc.
  • The databases are available on the memory so that the execution of memory access will be faster.

Installation of Redis for PHP in CentOS

To install Redis for PHP in CentOS follow the following step:

Step 1: At first, Open the terminal of CentOS and run the following command. This command will check the proper version needed for the particular machine. This command will manage the dependencies according to the configuration of the machine.

sudo yum install epcl-releasr yum-utils

Open-the-terminal-of-CentOS

 

Step 2: The below command is used for downloading purpose of Redis. It will download the Redis in CentOS. It will take a few times. Wait till the downloading is successful.

sudo yum install http://rpms.remirepo.net/enterprice/remi-release-7.rpm

Download-the-Redis-in-CentOS

 

Step 3: Now, after downloading Redis, it is time to install it. Just run the below command it will take a few seconds to install it on the machine.

sudo yum install redis

Install-redis

 

Step 4: After installing Redis, the server of Redis has to be enabled. For this purpose run the below-mentioned command. It will start the server of the Redis.

sudo systemctl enable –now redis

Start-the-server-of-the-Redis

 

Step 5: Now, the installation and configuration is completed. It is time to check the status of the installed Redis. To check the status following command should be run. It will give the output active (running) status.

sudo systemctl status redis

Check-the-status-of-the-installed-Redis

 

Hence, the installation is successful.


Last Updated : 25 Apr, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads