light/xhgui

From perftools/xhgui,A web based interface for viewing profile data collected by XHProf.

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 82

Open Issues: 0

Language:JavaScript

1.0.2 2018-06-22 02:52 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