Debian 11 安装 redis 5.0

安装命令

sudo apt install redis-server

安装后检查 Redis 服务状态

sudo systemctl status redis-server

Redis 的主要配置文件位于 /etc/redis/redis.conf

注释掉 Bind 127.0.01::1 来允许所有IP都可连接

设置 requirepass 来设置Redis 的登录密码

 

 

 重启redis 服务

sudo systemctl restart redis-server

 使用Redis-cli 登录后 要使用 auth 你的密码 来验证身份

posted @ 2022-12-01 14:46  顾小凡  阅读(164)  评论(0)    收藏  举报