安装

更新
sudo apt update
安装
sudo apt install redis-server
启动
sudo service redis-server start
判断启动成功
redis-cli
127.0.0.1:6379> ping
PONG

基本操作