您现在的位置是:网站首页>技术文章技术文章
mac nginx 安装、配置自启动、开启、关闭、重启nginx
左鹏02-22 08:02:11【技术文章】4,113人已围观
简介一、安装 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
一、安装
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
- 网站程序:Spring Boot
- 主题模板:《今夕何夕》
- 文章统计:104条
- 微信公众号:扫描二维码,关注我们
