环境
系统:CentOS 7.5
软件:php-fpm-exporter.linux.amd64
准备
PHP-FPM端
相关连接 https://easyengine.io/tutorials/php/fpm-status-page
https://blog.csdn.net/ffzhihua/article/details/88844259
-
配置PHP-FPM
# vim /etc/php-fpm.d/www.conf pm.status_path = /status ping.path = /ping
-
重启PHP-FPM
# systemctl restart php-fpm
Nginx端
-
添加Nginx配置
# vim /etc/nginx/conf.d/php-fpm-status.conf server { listen 9010; allow 127.0.0.1; deny all; location ~ ^/(status|ping)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FI