一:Homebrew安装。
解决Mac安装Homebrew失败 - 君临天下之徐少 - 博客园
Homebrew 是一个包管理器,用来在 macOS 安装 Linux 工具包。
1:使用国内镜像安装。
2:先安装git,再安装Homebrew。
二 :安装nginx,并配置rtmp模块。
Mac上搭建直播服务器 nginx + rtmp_淘淘是只狗的博客-CSDN博客
1:homebrew/nginx was deprecated. This tap is now empty as all its formulae were migrated。报错。
Error: Failure while executing; `git clone https://github.com/denji/homebrew-nginx /opt/homebrew/Library/Taps/denji/homebrew-nginx --origin=origin --template=` exited with 128.
报错可用手机热点。
2:【macOS】brew update无法正常使用解决方案(Warning: No remote 'origin' in..., skipping update! ) - 双份浓缩馥芮白 - 博客园
Mac上搭建RTMP服务器 - 简书
三:配置文件地址。/opt/homebrew/etc/nginx/
vim nginx.conf。
想要停止服务,命令:(stop是强制退出,quit是执行完任务后退出)
nginx -s quit
// 或者
nginx -s stop