How to Install phpRedis for CentOS?
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.
- 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
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
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
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
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
Hence, the installation is successful.
Please Login to comment...