参考安装链接:
https://www.jianshu.com/p/e1e5717049e8
Redis配置文件的介绍:
简单的配置:https://www.cnblogs.com/shoren/p/redis.html
详细的介绍:https://www.cnblogs.com/ysocean/p/9074787.html
安装好Redis可以通过redis-server -v查看版本号
shijianzhongdeMacBook-Pro:xinhe shijianzhong$ redis-server -v Redis server v=5.0.5 sha=00000000:0 malloc=libc bits=64 build=31cd6e21ec924b46 shijianzhongdeMacBook-Pro:xinhe shijianzhong$
reids-cli -v 查看客户端版本号
shijianzhongdeMacBook-Pro:xinhe shijianzhong$ redis-cli -v redis-cli 5.0.5
brew安装的redis的配置文件路径
vim /usr/local/etc/redis.conf
启动redis:
redis-server,这个没有开守护进程的话,需要一直开着这个窗口
这个命令更加好用
brew services start redis
查看是否启动
shijianzhongdeMacBook-Pro:xinhe shijianzhong$ ps au|grep redis shijianzhong 47066 0.0 0.0 4268336 712 s000 S+ 11:14下午 0:00.00 grep redis shijianzhongdeMacBook-Pro:xinhe shijianzhong$