02_Nginx

作者: 对方不想理你并向你抛出一个异常 | 来源:发表于2017-08-04 22:46 被阅读7次

    信号控制与进程管理

    信号 作用
    TERM, INT Quick shutdown
    QUIT Graceful shutdown 优雅的关闭进程,即等请求结束后再关闭
    HUP Configuration reload ,Start the new worker processes with a new configuration Gracefully shutdown the old worker processes改变配置文件,平滑的重读配置文件
    USR1 Reopen the log files 重读日志,在日志按月/日分割时有用
    USR2 Upgrade Executable on the fly 平滑的升级
    WINCH Gracefully shutdown the worker processes 优雅关闭旧的进程(配合USR2来进行升级)

    官方文档

    具体语法:
    Kill -信号选项 nginx的主进程号
    Kill -HUP 4873
    Kill -信号控制 cat /xxx/path/log/nginx.pid
    Kil; -USR1 cat /xxx/path/log/nginx.pid

    进程:



    主进程:管理子进程
    子进程:响应请求

    相关文章

      网友评论

        本文标题:02_Nginx

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