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
  • 相关阅读:
    结对-贪吃蛇游戏结对编项目设计文档
    java基础语法day04
    java基础语法day03
    轻量化ViewController的几个小技巧
    __weak与__block修饰符的区别
    OC与Swift的主要区别
    copy与retain /深拷贝与浅拷贝
    如何理解MVC设计模式
    iOS常见加密方法
    关于RunLoop
  • 原文地址:https://www.cnblogs.com/stono/p/9172936.html
Copyright © 2011-2022 走看看