检测当前版本
`brew -v`
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core
更新版本
brew update
查询是否安装nginx
brew search nginx
展示nginx的配置文件所在和启动命令
brew info nginx
安装nginx
brew install nginx
展示nginx的配置文件所在和启动命令
brew info nginx
打开文件
open /opt/homebrew/etc/nginx
更改对应配置