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 相同