Skip to main content

Redis Installation Guide

This guide provides all the key information and getting-started instructions after a successful Redis installation via DeploySage-CLI.

Installation Summary

Below is the core configuration information for your Redis installation.

ItemValue
Installed VersionRedis 6.x / 7.x
Installation Directory/usr/local/redis
Data Directory/var/lib/redis
Configuration File/etc/redis/redis.conf
Service Nameredis

Usage Guide

Service Management

Connecting to the Database

Common Commands

You can manage the Redis service using standard systemctl commands:

Use redis-cli to connect to the Redis service. No password is required by default.

After connecting successfully, you can test the connection:

Once inside the client, you can execute Redis commands:

# Start the service
sudo systemctl start redis

# Stop the service
sudo systemctl stop redis

# Restart the service
sudo systemctl restart redis

# Check the service status
sudo systemctl status redis
redis-cli
127.0.0.1:6379> PING
PONG
# Set a key-value pair
SET mykey "Hello Redis"

# Get the value of a key
GET mykey

# List all keys
KEYS *

# Delete a key
DEL mykey

# Check if a key exists
EXISTS mykey

# View server information
INFO

Important Notes