guopengfa
发布于 2021-06-17 / 578 阅读 / 0 评论 / 0 点赞

redis基础

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

评论