nginx查看php-fpm 工作状态

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

工作状态就能看到了。


This entry was posted in Linux, PHP and tagged , . Bookmark the permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:月小升博客https://java-er.com/blog/nginx-php-fpm-work-status/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*