Redis error currently not able to persist on disk

When doing a FLUSHALl on redis server, i get following error message [root@server ~]# redis-cli FLUSHALL (error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if … Read more

How to flush Redis cache

To delete everything from redis cache, run the command redis-cli FLUSHDB This will delete all keys from the current DB. To delete cache from all DB, run redis-cli FLUSHALL If Redis is on another server or needs password, you can use the following command redis-cli -h IP_HERE -p PORT_HERE -a PASSWORD_HERE FLUSHDB See Redis

How to find Redis data directory

To find the data directory in redis, run the command redis-cli config get dir Redis data directory is specified in the configuration file /etc/redis/redis.conf The entry is dir /var/lib/redis redis data directory should be owned by user redis chown redis:redis /var/lib/redis Example [root@server redis]# cd /var/lib/redis/ [root@server redis]# ls -la total 12 drwxrwx— 2 redis … Read more

Install latest Redis on Ubuntu/Debian Server

To install the latest version of Redis on Ubuntu/Debian server, run curl https://packages.redis.io/gpg | sudo apt-key add – echo “deb https://packages.redis.io/deb $(lsb_release -cs) main” | sudo tee /etc/apt/sources.list.d/redis.list sudo apt-get update sudo apt-get install redis Enable redis server to start on boot systemctl enable redis-server Start redis server systemctl start redis-server See Redis

Install Redis from Source

To install Redis from the source, run Copy config file Create redis user Create directory Set data directory Find Replace with Create service file Add the following content to the file Enable and start Redis To find Redis version, run To monitor Redis, you can use redis-cli Back to redis

Install Redis on Plesk Debian Server

Plesk License Number

To install Redis on Plesk Debian/Ubuntu server, run apt install -y redis-server redis-tools Enable and restart redis-server systemctl enable redis-server systemctl restart redis-server Now install PHP Modules apt install -y plesk-php70-redis plesk-php71-redis plesk-php72-redis plesk-php73-redis plesk-php74-redis After installing, you will see redis listed in phpinfo() page.

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 Get redis config details

redis

Install Redis Install latest Redis on Ubuntu/Debian Server Install Redis on Plesk Debian Server Install Redis from Source How Tos Installing Redis PHP module CentOS 7 Connect to redis from PHP Monitor redis with redis-cli redis commander – Web GUI for Redis How to find Redis data directory How to flush Redis cache Redis error … Read more

Install Redis PHP Module from source

To install Redis PHP module from source, run cd /usr/local/src git clone https://github.com/phpredis/phpredis.git cd /usr/local/src/phpredis /usr/serverok/php-7.1.12/bin/phpize ./configure –with-php-config=/usr/serverok/php-7.1.12/bin/php-config make && make install Once installed, edit your php.ini file, add following below extension_dir line extension=redis.so Verify redis is installed with php -m [root@vps154294 ~]# /usr/serverok/php-7.1.12/bin/php -m | grep redis redis [root@vps154294 ~]# Now restart web server … Read more

Installing Redis PHP module CentOS 7

Lets search for available redis packages [root@vps154294 smartfst]# yum search redis Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirror.us.leaseweb.net * remi-safe: repo1.ash.innoscale.net ============================================================================================ N/S matched: redis ============================================================================================ collectd-redis.x86_64 : Redis plugin for collectd collectd-write_redis.x86_64 : Redis output plugin for collectd hiredis.x86_64 : Minimalistic C client library for Redis hiredis-devel.x86_64 : Development … Read more