安装nginx brew install nginx 创建启动文件夹 mkdir -p ~/Library/LaunchAgents 将安装好的nginx的目录下plist文件复制到启动文件夹 cp /usr/local/opt/nginx/nginx版本/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/ 加载启动文件 launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist 查看启动情况 …