php配置优化-生产环境应用版
[global] error_log = log/php-fpm.log log_level = warning emergency_restart_threshold = 10 emergency_restart_interval = 1m process_control_timeout = 10s daemonize = yes [www] listen = 0.0.0.0:9000 listen.backlog = 8192 listen.owner = www listen.group = www listen.mode = 0666 user = www group = www pm = static pm.max_children = 500 pm.max_requests = 65535 pm.status_path = /php_status request_terminate_timeout = 60 request_slowlog_timeout = 2 slowlog = var/log/slow.$pool.log rlimit_files = 65530 rlimit_core = 0 catch_workers_output = yes env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp ;php_value[session.save_handler] = redis ;php_value[session.save_path] = "tcp://172.31.1.160:6379"