Mac brew 安装 nginx 设置 nginx 开机启动
Mac brew 安装 nginx 设置 nginx 开机启动
如果有些目录了就跳过
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/nginx-full/1.12.2/homebrew.mxcl.nginx-full.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
sudo chown root:wheel /usr/local/Cellar/nginx-full/1.12.2/bin/nginx
sudo chmod u+s /usr/local/Cellar/nginx-full/1.12.2/bin/nginx