美文网首页
001.nginx windows下命令

001.nginx windows下命令

作者: airkisser | 来源:发表于2017-03-29 00:04 被阅读0次

    0.nginx帮助

    D:\Program Files\nginx-1.11.10>nginx.exe -h
    nginx version: nginx/1.11.10
    Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
    
    Options:
      -?,-h         : this help
      -v            : show version and exit
      -V            : show version and configure options then exit
      -t            : test configuration and exit
      -T            : test configuration, dump it and exit
      -q            : suppress non-error messages during configuration testing
      -s signal     : send signal to a master process: stop, quit, reopen, reload
      -p prefix     : set prefix path (default: NONE)
      -c filename   : set configuration file (default: conf/nginx.conf)
      -g directives : set global directives out of configuration file
    

    1.启动nginx

    • 双击nginx.exe启动
    • 使用命令start nginx.exenginx.exe启动

    2.停止nginx

    • 使用命令nginx.exe -s stopnginx.exe -s quit停止
      <u>stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息</u>

    3.重新载入

    • 修改完配置后使用命令nginx.exe -s reload重新载入nginx

    相关文章

      网友评论

          本文标题:001.nginx windows下命令

          本文链接:https://www.haomeiwen.com/subject/hagsottx.html