阅读

查看网站活跃进程

Nginx  2016-10-13 10:58

1, 修改nginx 对应域名配置,增加

location ~ ^/status$ {
    include        fastcgi_params;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_param  SCRIPT_FILENAME $fastcgi_script_name;
    allow          127.0.0.1;
    allow          本机IP;
    deny           all;
}

2, 修改php-fpm.conf,取消注释

pm.status_path = /status

3,重启服务, 如

service nginx reload
service php-fpm reload

4,查看

 curl http://localhost/status