php-fpm.conf文件中打开pm.status_path = /status这一行
我的文件位置为/data1/server/php-cgi/etc/php-fpm.conf
去掉前面的;即可打开
在nginx.conf做如下配置即可:
location /status {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
/status 表示虚拟目录了。
然后在浏览器输入http://211.143.xxx.xxx/status
pool: www
process manager: dynamic
start time: 18/Dec/2012:16:27:37 +0800
start since: 3
accepted conn: 1
listen queue: 0
max listen queue: 0
listen queue len: 128
idle processes: 1
active processes: 1
total processes: 2
max active processes: 1
max children reached: 0
工作状态就能看到了。