您现在的位置是:网站首页>技术文章技术文章
mac nginx 安装、配置自启动、开启、关闭、重启nginx
左鹏02-22 08:02:11【技术文章】20人已围观
简介一、安装brew install nginx二、设置开机自启动sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist三、开启、关闭、重启nginxnginx -h&nbs
一、安装
brew install nginx
二、设置开机自启动
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
三、开启、关闭、重启nginx
nginx -h 查看 nginx 命令参数 nginx -s reopen | quit | reload | stop 开启 退出 重启 停止 nginx -t 测试配置文件是否正确
点击排行

本栏推荐

猜你喜欢
站点信息
- 建站时间:2018-09-18
- 网站程序:Laravel
- 主题模板:《今夕何夕》
- 文章统计:85条
- 统计数据:
- 微信公众号:扫描二维码,关注我们
