php 显示状态,php-fpm status状态配置显示
生活随笔
收集整理的這篇文章主要介紹了
php 显示状态,php-fpm status状态配置显示
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
系統為ubuntu,在usr/etc/sites-enabled/中編輯nginx配置文件
server_name demo.com;
location ~^/status$ {
#auth_basic "status page";
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
#如果是端口請用 fastcgi_pass 127.0.0.1:9000;
}
另外需要在/etc/php5/fpm/pool.d/www.conf中修改一項,把status打開
pm.status_path = /status
當然可以看看fpm中關于staus的一些參數說明。
然后重啟fpm 和nginx
servie php5-fpm start|status|stop
service nginx relaod
成功后可以看到如下圖
總結
以上是生活随笔為你收集整理的php 显示状态,php-fpm status状态配置显示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c语言输入一个数求因数,【代码】求一个数
- 下一篇: 动态规划算法php,php算法学习之动态