zoukankan      html  css  js  c++  java
  • max_spare_servers到底是个什么意思?

    pm.max_children=500
    pm.start_servers=280
    pm.min_spare_servers=50
    pm.max_spare_servers=500 把max_spare_servers设置为200后,服务器挂了一直502

    #,保证空闲进程数最大值,如果空闲进程大于此值,此进行清理  。说是这个意思设置了200后关闭,服务器还出问题。。


    报错如下
    ● php-fpm.service - The PHP FastCGI Process Manager
    Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor pres et: disabled)
    Active: failed (Result: exit-code) since Tue 2019-03-12 10:42:56 CST; 27s ago
    Process: 15964 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status= 78)
    Main PID: 15964 (code=exited, status=78)

    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z systemd[1]: Starting The PHP FastCGI ...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z php-fpm[15964]: [12-Mar-2019 10:42:56...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z php-fpm[15964]: [12-Mar-2019 10:42:56...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z php-fpm[15964]: [12-Mar-2019 10:42:56...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z systemd[1]: php-fpm.service: main pro...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z systemd[1]: Failed to start The PHP F...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z systemd[1]: Unit php-fpm.service ente...
    Mar 12 10:42:56 iZbp16mw7ytq0ocsm6oot8Z systemd[1]: php-fpm.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@iZbp16mw7ytq0ocsm6oot8Z etc]# cd /php-fpm.d
    -bash: cd: /php-fpm.d: No such file or directory

  • 相关阅读:
    读取exec返回值
    List
    面向对象设计原则
    CascadingDropDown省市县无刷新联动
    读写配置文件app.config
    变向实现动态水晶报表
    JS验证是否日期格式
    C#中调用API(转)
    (转自老赵Jeffrey Zhao)The status code returned from the server was: 12031”。(转)
    利用Javascript的“函数重载”实现自定义Alert样式
  • 原文地址:https://www.cnblogs.com/yuzhould/p/10515248.html
Copyright © 2011-2022 走看看