php-fpm.conf

(如max_requests/max_children/request_terminate_timeout之类的影响性能的配置)


可以修改php.ini 中的配置

php_admin_value[error_log] = /web/log/php-web.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 1024M


[www]
user = nginx
group = nginx
listen = 9200
pm = ondemand
pm.max_children = 512
pm.process_idle_timeout = 10s
pm.max_requests = 1000
pm.status_path = /status
ping.path = /ping
ping.response = pong
rlimit_files = 65535
rlimit_core = unlimited
request_slowlog_timeout = 3s
request_terminate_timeout = 60
slowlog = /www/log/php_slow.log
;access.log = /www/log/php_access.log
catch_workers_output = yes
security.limit_extensions = .php
php_flag[display_errors] = off
php_admin_value[error_log] = /www/log/php-www.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 128M