zoukankan      html  css  js  c++  java
  • PHP fpm配置和优化

    pm.max_children = 1024 #最大子进程数 maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
    pm.start_servers = 2 #启动时创建的子进程数  Used only when pm is set to 'dynamic'
    pm.max_requests = 2048 #每个子进程可以处理的请求数 The number of requests each child process should execute before respawning
    slowlog = log/$pool.log.slow #慢日志 The log file for slow requests
    
    request_slowlog_timeout = 0 
    #慢日志记录时间 The timeout for serving a single request after which a PHP backtrace will be dumped to the 'slowlog' file
    rlimit_core = 1024
    listen.owner = www-data
    listen.group = www-data
    
    #以上两个配置需要和Server 相同
  • 相关阅读:
    工厂增强
    面试题
    SpringBean生命周期及作用域
    字符串
    带参数方法实例
    带参数方法
    人机猜拳
    类的无参方法
    类和对象实例2
    类和对象实例1
  • 原文地址:https://www.cnblogs.com/alin-qu/p/7967405.html
Copyright © 2011-2022 走看看