第一步,使用命令sudo apt-get update更新软件源。 第二步,使用命令sudo apt-get install redis-server直接安装Redis。 第三步,使用命令sudo service redis-server start开启Redis服务。