Homebrew是MacOS上的包管理工具,可以简化 macOS 和 Linux 操作系统上软件的安装。
Homebrew安装
1
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
安装较慢,大概率会失败。
苹果电脑 常规安装脚本(推荐 完全体 几分钟安装完成):
1
| /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
|
苹果电脑 极速安装脚本(精简版 几秒钟安装完成):
1
| /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed
|
苹果电脑 卸载脚本:
1
| /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
|
常见错误去下方地址查看:
1
| https://gitee.com/cunkai/HomebrewCN/blob/master/error.md
|
nginx安装
参考链接:
- Homebrew安装
- ngxin命令找不到