安装Redis的步骤如下:
sudo apt update
sudo apt install redis-server
sudo systemctl status redis-server
sudo systemctl enable redis-server
sudo systemctl start redis-server
redis-cli ping
如果回复为 “PONG”,则表示Redis已经成功安装并正常运行。