月小升

一个13年的开发老兵。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

工作状态就能看到了。


首发于http://java-er.com - http://java-er.com/blog/nginx-php-fpm-work-status/

posted on 2012-12-19 13:42  月小升  阅读(434)  评论(0编辑  收藏  举报