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