Mac brew 安装 nginx 设置 nginx 开机启动

  ⋅   :37  ⋅   :0  ⋅   生活日记

Mac brew 安装 nginx 设置 nginx 开机启动

如果有些目录了就跳过

mkdir -p ~/Library/LaunchAgents

cp /usr/local/Cellar/nginx-full/1.12.2/omebrew.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/bin/nginx

sudo chmod u+s /usr/local/Cellar/nginx-full/1.12.2/bin/nginx/bin/nginx

 

如需评论,请填写表单。
换一个

记住我的信息