3 Star 4 Fork 2

qieangel2013 / zqfHB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

zqfHB

Php Page execution statistics extension

install zqfHB

由于依赖hiredis的c的api调用redis,所以首先需要安装hiredis
wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz
tar zxvf v0.13.3.tar.gz
cd hiredis-0.13.3
make
或者直接make install,建议手动按下面配置
mkdir -p /usr/local/include/hiredis  /usr/local/lib
cp -a hiredis.h async.h read.h sds.h adapters /usr/local/include/hiredis
cp -a libhiredis.so /usr/local/lib/libhiredis.so.0.13
cd /usr/local/lib && ln -sf libhiredis.so.0.13 libhiredis.so
切换到cd hiredis-0.13.3目录下
cp -a libhiredis.a /usr/local/lib
mkdir -p /usr/local/lib/pkgconfig
cp -a hiredis.pc /usr/local/lib/pkgconfig
如果出现libhiredis.so.0.13: cannot open shared object file: No such file or directory in Unknown on line 0
vi /etc/ld.so.conf
文件末尾添加  /usr/local/lib
然后执行ldconfig
下面安装本扩展
./phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
add zqfHB.so to php.ini
extension=zqfHB.so
[zqfHB]
zqfHB.slow_maxtime=10000(单位微妙1s=1000000us,改参数是页面加载超过这个时间会统计)
zqfHB.type=1(1代表redis 2代表memcache,由于memcache性能处理有点低,暂时不开放)
zqfHB.auth=123456(如果redis没有密码,此项不必配置,如果有密码,必须配置此项)
zqfHB.host=192.168.102.163
zqfHB.port=6379

###use: 把web里的所有文件复制到网站目录下或者放在其他目录下 直接执行http://localhost/web/ ###效果图 输入图片说明 输入图片说明 ###交流使用 交流群:337937322 ###如果你对我的辛勤劳动给予肯定,请给我捐赠,你的捐赠是我最大的动力 项目捐赠列表

空文件

简介

统计 php 文件执行时间的扩展 展开 收起
C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/qieangel2013/zqfHB.git
git@gitee.com:qieangel2013/zqfHB.git
qieangel2013
zqfHB
zqfHB
master

搜索帮助