smj227227 发表于 2016-8-1 16:26:51

军哥 fpm监控返回502

打算监控fpm_status,配置了一直返回502nginx代码:

location ~ ^/fpm_status$ {

include fastcgi_params;

fastcgi_pass 127.0.0.1:9000;

fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;


}


php-fpm

listen = /tmp/php-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 80
pm.start_servers = 40
pm.min_spare_servers = 40
pm.max_spare_servers = 80
pm.status_path = /fpm_status
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.log

licess 发表于 2016-8-1 18:57:42

fastcgi_pass 127.0.0.1:9000;

看置顶帖502解决方法

smj227227 发表于 2016-8-2 13:06:26

原帖由 licess 于 2016-8-1 18:57 发表 https://bbs.vpser.net/images/common/back.gif
fastcgi_pass 127.0.0.1:9000;

看置顶帖502解决方法
可是nginx网站和nginx_status一切都正常 没有这个502错误

smj227227 发表于 2016-8-2 13:17:45

原帖由 licess 于 2016-8-1 18:57 发表 https://bbs.vpser.net/images/common/back.gif
fastcgi_pass 127.0.0.1:9000;

看置顶帖502解决方法
解决了,谢谢军哥指点!:loveliness:
页: [1]
查看完整版本: 军哥 fpm监控返回502