首页 > 代码库 > phpfpm开启pm.status_path配置,查看fpm状态参数
phpfpm开启pm.status_path配置,查看fpm状态参数
php-fpm配置
pm.status_path = /phpfpm_status
nginx配置
server {
root /data/www;
listen 80;
server_name 10.10.20.3;
index index.html index.htm index.php;
#测试加到虚拟主机里的server访问不成功,就单独配置出来了
location ~ ^/phpfpm_status$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi.conf;
}
location ~ .*\.(php)?$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi.conf;
}
}
然后shell下:curl http://10.10.20.3/phpfpm_status
phpfpm开启pm.status_path配置,查看fpm状态参数