php blackfire,php – 在MAMP Pro安装上设置BlackFire.io(Mac OSX)

本文指导您如何在MAMP环境中正确安装PHP探针,并配置Blackfire扩展。首先,通过运行PHP-i|grep'extension_dir'找到PHP扩展目录,然后从官方手册下载探针。接着,编辑PHP.ini文件,将探针路径添加到指定位置。对于MacOSX系统,需启用特定的socket配置,并设置代理超时时间、日志级别和服务器ID、服务器令牌。
摘要由CSDN通过智能技术生成

您必须在正确的文件夹(MAMP的PHP可执行文件所在的位置)中安装PHP探针.

运行PHP -i | grep’extension_dir’并从Manual选项卡下的here下载探针.

之后,编辑PHP.ini(文件>编辑模板> PHP>您的PHP版本),并在文件末尾添加配置:

[blackfire]

;Replace the path with the path of the folder where you downloaded the probe

extension="/Applications/MAMP/bin/PHP/PHP5.5.10/lib/PHP/extensions/no-debug-non-zts-20121212/blackfire-PHP-darwin_amd64-PHP-55.so"

; On Linux systems,uncomment the following line

;blackfire.agent_socket = unix:///var/run/blackfire/agent.sock

; On Mac OS X systems,uncomment the following line

blackfire.agent_socket = unix:///usr/local/var/run/blackfire-agent.sock

blackfire.agent_timeout = 0.25

; Log verbosity level (4: debug,3: info,2: warning,1: error)

blackfire.log_level = 4

; Log file

blackfire.log_file = /tmp/blackfire.log

blackfire.server_id = YOUR_SERVER_ID

blackfire.server_token = YOUR_SERVER_TOKEN

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值