redis下载官网
https://github.com/tporadowski/redis/releases
进入redis
redis-cli
配置redis密码
config set requirepass 123456
查看配置的密码
config get requirepass
进行密码验证
auth123456
MAC系统
# 安装redis
brew install redis
# 查看redis目录
brew list redis
#可看出redis配置信息在
/opt/homebrew/Cellar/redis/6.2.4/.bottle/etc
# 开启redis
brew services start redis
# 关闭redis
brew services stop redis