Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Connecting to and Starting Redis | Redis Fundamentals
Introduction to Redis
course content

Course Content

Introduction to Redis

Introduction to Redis

1. Redis Fundamentals
2. The Essential Redis Commands
3. Data Types in Redis
4. Advanced Features and Security
5. Caching with Redis and Spring Boot

book
Connecting to and Starting Redis

Starting Redis Server

You already know how to start the server via the command line on macOS.

After running the command, you'll see information about the current server status.

When Redis starts, it logs key information, including the version (7.2.6), port number (typically 6379), and the PID (Process ID), which uniquely identifies the Redis process for management purposes.

It also logs the operating mode (default is standalone mode). The message Ready to accept connections confirms that the server has started successfully and is ready to handle requests.

Working with Redis CLI

To connect to the Redis server, run the following command:

Once connected, you'll see the command prompt:

Here, you can enter your commands that will interact with the Redis server. We'll cover that in the next section. But first, let's check if the server is working and if everything is set up correctly.

Checking Server Status

To check the server's status, type the following command in Redis CLI:

When you enter this command, the server responds with PONG, indicating that the connection is established and the server is running correctly.

Disconnecting from the Server

To quit Redis CLI, type the following command:

This will close the connection and exit the command line interface.

1. What command is used to start the Redis server?

2. Which command is used to exit the Redis CLI?

What command is used to start the Redis server?

What command is used to start the Redis server?

Select the correct answer

Which command is used to exit the `Redis CLI`?

Which command is used to exit the Redis CLI?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 5
We're sorry to hear that something went wrong. What happened?
some-alt