How to install?

Here are three ways to install Redis:

Docker way

docker pull redis
docker run --name redis -d -p 6379:6379 redis
docker exec -it redis redis-cli
Copy the code

Github source code compilation method

// Download gitclone- the 2.8 branch - the depth 1 [email protected]: antirez/redis. GitcdRedis // Compile makecdSRC // start the service, daemonize means run in the background./redis-server --daemonize yesCopy the code

Direct installation

// ubuntu
sudo apt-get install redis
// mac
brew install redis
// centos
yum install redis
Copy the code

How to use it?

The CLI interaction mode is displayed

redis-cli
Copy the code

Installation Free Experience

During the basic learning process, you can also use the web version of Try Redis to experience the basic functions of Redis