文章目录 一、安装Redis二、配置Redis 一、安装Redis 安装命令 sudo apt update sudo apt install redis-server sudo systemctl status redis-server # 查看安装状态 二、配置Redis 修改配置文件 find / -name "redis.conf" # 查找配置文件路径 sudo vim /etc/redis/redis.conf # 进入配置文件 取消该行注释 bind bind 0.0.0.0 ::1 重启服务 sudo systemctl restart redis-server