1.官网下载 https://redis.io
2. 把解压后的文件夹放到指定目录: /usr/local
mac finder打开两个窗口方法:https://jingyan.baidu.com/article/ac6a9a5e184b572b653eacee.html
mac finder打开指定路径方法:
https://www.cnblogs.com/tianyu-cj/p/6856346.html
3. 在终端切换到 /usr/local/redis 目录下
https://blog.csdn.net/weixin_33933118/article/details/94688110
4. 输入 sudo make test
如果出现如上所示的报错,
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
在终端窗口输入 xcode-select --install 然后会安装 command Line Developer Tools 命令行开发工具
安装完后,再执行 sudo make test 就不会报错了
在全部test通过后,执行sudo make install
输入命令 redis-server,启动redis 出现这个页面,成了!
Mac环境安装Redis
最新推荐文章于 2024-04-29 11:12:12 发布