您现在的位置是:网站首页>技术文章技术文章

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 测试配置文件是否正确

 

文章评论

    请先说点什么
    热门评论
    0人参与,0条评论
    正在载入评论列表...

    站点信息

    • 建站时间:2018-09-18
    • 网站程序:Spring Boot
    • 主题模板:《今夕何夕》
    • 文章统计:104条
    • 微信公众号:扫描二维码,关注我们
    登陆您的账户