Mac安装redis
背景:个人简单redis,简单做一下记录
1、安装命令:
brew install redis
2、配置文件存放位置:
/usr/local/etc/redis.conf
3、启动命令
brew services start redis
brew services stop redis
brew services restat redis
4、redis服务端和客户端存放目录
/usr/local/bin/redis-server
/usr/local/opt/redis/bin
5、redis:为什么速度快
单线程 + 多路IO复用
6、redis登录客户端,带密码登录
./redis-cli -p 6379 -a 123456