启用php-fpm状态
查找php-fpm.conf,cat php-fpm.conf | grep pm.status
返回为空的情况就需要在php-fpm.d文件夹下面的www.conf
将pm.status_path前面的注释符号去掉
在配置nginx
location ~ ^/(status|ping)$
{
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
}
最后重启nginx与php-fpm