php-fpm status 状态页启用

php-fpm.conf配置文件要启用以下选项:

listen = /tmp/php-cgi.sock

listen.owner = www

listen.group = www

listen.mode = 0666

pm.status_path = /status

ping.path = /ping

ping.response = pong


nginx 文件配置:

location = /status {

include fastcgi_params;

fastcgi_pass unix:/tmp/php-cgi.sock;

fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;

#allow 127.0.0.1;

#allow stats_collector.localdomain;

#allow watchdog.localdomain;

#deny all;

}


访问效果:

http://127.0.0.1/status

pool:                 www
process manager:      static
accepted conn:        453
listen queue len:     0
max listen queue len: -1
idle processes:       128
active processes:     0
total processes:      128
max children reached: 0



你可能感兴趣的:(PHP,status)