<NME> php-fpm.conf
<BEF> [global]
error_log = /var/log/php-fpm/error.log
; Possible Values: alert, error, warning, notice, debug
;log_level = notice
daemonize = yes

[www-iphp]
listen = 127.0.0.1:9100
;listen.backlog = -1
listen.allowed_clients = 127.0.0.1

user = nginx 
group = nginx

pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35

slowlog = /var/log/php-fpm/www-slow.log
 
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M

; Set session path to a directory owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[session.save_path] = /tmp
php_value[session.cookie_lifetime] = 0
php_value[date.timezone] = 'Asia/Shanghai'
php_value[short_open_tag] = 'On'
; avoid 502 error on reload
php_value[max_execution_time] = 30
php_value[process_control_timeout] = 30


<MSG> udpate

<DFF> @@ -1,11 +1,11 @@
 [global]
-error_log = /var/log/php-fpm/error.log
+daemonize = yes
+error_log = /var/log/php-fpm/demo.error.log
 ; Possible Values: alert, error, warning, notice, debug
 ;log_level = notice
-daemonize = yes
 
-[www-iphp]
-listen = 127.0.0.1:9100
+[demo]
+listen = 127.0.0.1:9000
 ;listen.backlog = -1
 listen.allowed_clients = 127.0.0.1
 
@@ -13,17 +13,14 @@ user = nginx
 group = nginx
 
 pm = dynamic
-pm.max_children = 50
-pm.start_servers = 5
-pm.min_spare_servers = 5
-pm.max_spare_servers = 35
+pm.max_requests = 1000
+pm.max_children = 100
+pm.start_servers = 10
+pm.min_spare_servers = 10
+pm.max_spare_servers = 20
 
-slowlog = /var/log/php-fpm/www-slow.log
- 
-php_admin_value[error_log] = /var/log/php-fpm/www-error.log
-php_admin_flag[log_errors] = on
-;php_admin_value[memory_limit] = 128M
+request_slowlog_timeout = 5s
+slowlog = /var/log/php-fpm/demo.slow.log
 
-; Set session path to a directory owned by process user
 php_value[session.save_handler] = files
-php_value[session.save_path] = /var/lib/php/session
+php_value[session.save_path] = /tmp

udpate