Redis provides two options for disk persistence: In this section, you’ll configure some basic persistence and tuning options for Redis. If Redis is running, it will return: PONG
Verify that Redis is running with redis-cli: redis-cli ping Optional: To automatically start Redis on boot: sudo systemctl enable redis
#Install redis cli linux install#
Install RedisĮPEL repository, and then use it to install Redis.Īdd the EPEL repository, and update YUM to confirm your change: sudo yum install epel-release
Replication steps in this guide, you will need at least two Linodes. If you’re not familiar with the sudo command, you can check our Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user. Securing Your Server to create a standard user account, harden SSH access and remove unnecessary network services. Getting Started guide and complete the steps for setting your Linode’s hostname and timezone. Since Redis serves all data from memory, we recommend using a This document provides both instructions for deploying the Redis server, and an overview of best practices for maintaining Redis instances on CentOS 7. Redis can be made highly available with Redis Sentinel and supports automatic partitioning with Redis Cluster. Redis features built-in transactions, replication, and support for a variety of data structures such as strings, hashes, lists, sets, and others. It can be used as a key-value database, or as a cache and message broker. Redis is an open-source, in-memory, data structure store with optional disk writes for persistence.