nginx mac上常用命令

  • 启动命令: sudo nginx
  • 疾速进行命令 sudo nginx -s stop
  • 安稳退出命令:sudo nginx -s quit
  • 从新加载配置文件命令:sudo nginx -s reload (当配置文件批改后,可执行此命令)
  • 文件批改后记得保留 source {批改文件的绝对路径}