Nginx

命令速记

Command Line

# 启动nginx
brew services nginx start

# 检查配置路径以及语法
nginx -t

# 重新读取配置
nginx -s reload

# 指定配置文件路径
nginx -c /usr/local/etc/nginx/nginx.conf

参考链接

nginx配置文件详解中文版