zoukankan      html  css  js  c++  java
  • nginx 相关命令 nginx -s reload/stop/quit

    nginx 相关命令

    学习了:https://www.cnblogs.com/zoro-zero/p/6590503.html

    start nginx  或者在linux上面直接 nginx

    nginx -t  # 验证配置文件;无法验证其它文件的情况
    nginx -s reload # 重新加载;可以重启其它文件启动的情况
    nginx -s stop # 快速停止
    nginx -s quit  # 正常停止
    nginx -V # 查看版本
    nginx -c conf/web01.conf # 使用另一个配置文件

    原文膜拜:

    验证配置是否正确: nginx -t
    
    查看Nginx的版本号:nginx -V
    
    启动Nginx:start nginx
    
    快速停止或关闭Nginx:nginx -s stop
    
    正常停止或关闭Nginx:nginx -s quit
    
    配置文件修改重装载命令:nginx -s reload
    
    1、错误情况:
    
    nginx: [error] CreateFile() "E:
    ginx
    ginx-1.9.3/logs/nginx.pid" failed
    
    nginx: [error] Open() "E:
    ginx
    ginx-1.9.3/logs/nginx.pid" failed
    
     
    
    使用命令创建/logs/nginx.pid文件: nginx -c conf/nginx.conf
    
     
    
    相关文档说明:
    
    
    http://www.cnblogs.com/wangkongming/p/4004416.html
    
    
    http://www.cnblogs.com/xiaogangqq123/archive/2011/03/02/1969006.html
    
     
    
    2、配置多个80端口 server:
    
     
    
    相关文档说明:
    
    http://os.51cto.com/art/201404/437182.htm
    
    
    3、不同端口为本地nginx服务器配置多个站点:
    
    相关文档说明:
    
    http://blog.csdn.net/yongzhang52545/article/details/51282914
    
    http://www.2cto.com/os/201411/355976.html
  • 相关阅读:
    GoogLeNet学习笔记
    ResNet学习笔记
    VGG学习笔记
    AlexNet学习笔记
    目标检测SSD
    YOLO系列(1)—— YOLO v1
    YOLO系列(2)—— YOLO v2
    R-CNN系列(4)—— Faster R-CNN
    如何打开.ipynb文件
    机器学习中的采样
  • 原文地址:https://www.cnblogs.com/stono/p/9172936.html
Copyright © 2011-2022 走看看