Command Line
# 启动nginx brew services nginx start # 检查配置路径以及语法 nginx -t # 重新读取配置 nginx -s reload # 指定配置文件路径 nginx -c /usr/local/etc/nginx/nginx.conf
nginx配置文件详解中文版