码迷,mamicode.com
首页 > Web开发 > 详细

phpfpm开启pm.status_path配置,查看fpm状态参数

时间:2017-05-19 12:54:10      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:root   开启   nginx   虚拟主机   curl   index.php   php   list   10.10   

 

php-fpm配置

pm.status_path = /phpfpm_status

 

nginx配置

server {
    root /data/www;
    listen 80;
    server_name 10.10.20.3;
    index index.html index.htm index.php;

 

#测试加到虚拟主机里的server访问不成功,就单独配置出来了

    location ~ ^/phpfpm_status$ {
        fastcgi_pass unix:/var/run/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        include fastcgi.conf;
    }

    location ~ .*\.(php)?$ {
        fastcgi_pass unix:/var/run/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        include fastcgi.conf;
    }

}

 

 

然后shell下:curl http://10.10.20.3/phpfpm_status

phpfpm开启pm.status_path配置,查看fpm状态参数

标签:root   开启   nginx   虚拟主机   curl   index.php   php   list   10.10   

原文地址:http://www.cnblogs.com/dongruiha/p/6877754.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!