redis

Install Redis from Source

To install Redis from source, run

Plesk License Number

Install Redis on Plesk Debian Server

To install Redis on Plesk Debian/Ubuntu server, run

Enable and restart redis-server

Now install PHP Modules

After installing, you will see redis listed in phpinfo() page.

Redis PHP Debian

Monitor redis with redis-cli

On Ununtu/Debian, install it with

To get stats, run

If your redis on differnt sevrer or use non standard port, then use

Example

INFO

If you want to see info about clients, run

Monitor

To see what redis is doing, run

If your redis is running on remote server, then use

redis

Install Redis on Plesk Debian Server
Installing Redis PHP module CentOS 7
Connect to redis from PHP
Monitor redis with redis-cli
Install Redis from Source
redis commander – Web GUI for Redis

Checking if redis works

Example

Count Number of Keys

To count number of keys, use

Example

Here DBSIZE returned 4114, that means you have that much key/value stored in redis.

Flush ALl

To flush all keys, use

phpinfo redis

Install Redis PHP Module from source

To install Redis PHP module from source, run

Once installed, edit your php.ini file, add following below extension_dir line

Verify redis is installed with php -m

Now restart web server

phpinfo() will show following

phpinfo redis

Installing Redis PHP module CentOS 7

Lets search for available redis packages

In this server, we have PHP 7.0 installed. So we need to install packages for PHP 7.0

Here are the two packages for PHP 7.0

Install it with yum

Now you need to restart web server, generally restarting apache will do. In this cause PHP is running as php-fpm under nginx, so we need to restart php-fpm with

Installing Redis On CentOS 7

To install Redis on CentOS, run

yum install redis

Start redis with

Set redis to start on boot

Verify redis is running with