light/xhgui

来自 perftools/xhgui,XHProf 收集的性能数据的基于 Web 的界面。

安装: 9

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 1

分支: 126

开放问题: 0

语言:JavaScript

1.0.2 2018-06-22 02:52 UTC

This package is auto-updated.

Last update: 2024-09-08 20:15:19 UTC


README

xhgui 的安装信息可以在源项目文档中查看:xhgui

Latest Stable Version Total Downloads Build Status

xhprof

如果是 PHP7 环境,推荐安装 longxinH/xhprof 扩展

部署

LNMP 环境部署

需要安装 mongodb 扩展,如果希望使用 udp 方式接收数据,可以选择 workerman 或 swoole,安装相应依赖的扩展即可

$ composer create-project light/xhgui xhgui

nginx

server {
    listen 80;
    server_name www.php-xhgui.dev php-xhgui.dev;
    root /server/wwwroot/xhprof/webroot;
    index index.php index.html;
    location / {
        try_files $uri $uri/ /index.php?$args;
    }
    location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

Docker(推荐)

$ cp env-docker .env
$ docker-compose build
$ docker-compose up -d

如果发现 nginx 的 80 或 9000 端口被占用,可以通过修改 .env 文件中的端口号来修改

查看输出日志

$ docker-compose logs -f