首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Blackfire无法使用WAMP在Windows上创建网络流

Blackfire无法使用WAMP在Windows上创建网络流
EN

Stack Overflow用户
提问于 2017-03-11 12:21:14
回答 1查看 1.2K关注 0票数 0

我试图使用Blackfire来分析HTTP请求。我已经安装了这些元素:

  • blackfire-agent及其配置文件(使用我的服务器id)
  • blackfire客户端和我用(我的客户机id)配置它(我启动了C:\Users\a.t>blackfire config)
  • blackfire php探针( dll,php.ini是用我的服务器id编辑的)

但我还是发现了一个错误:

C:\Users\a.t>blackfire curl --resolve 'simdate.dev:80:127.0.0.1' http://simdate.dev/

您是否有权对此页面进行分析?没有探测响应,缺少PHP扩展或中继代理的无效签名。

  • 在php.ini文件中禁用Xdebug和其他调试扩展名。
  • 客户端ID和客户端密钥与服务器ID和服务器密钥不同。
  • Blackfire Agent也在运行(如果我停止它,我也会犯同样的错误)

下面是php中声明的日志文件中的日志文件:

代码语言:javascript
复制
Sat Mar 11 12:31:44 2017 (11080): [Info] Can't find pgsql module, Blackfire SQL analyzer will be disabled for pgsql SQL queries
Sat Mar 11 12:31:44 2017 (11080): [Info] Can't find oci module, Blackfire SQL analyzer will be disabled for oci SQL queries
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found signature : RWQUOK8z****************iNQE=
Sat Mar 11 12:31:58 2017 (11080): [Info] No key found in memory or key expired, continuing without validation
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found valid agent id
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found file based probe stream (utcp://127.0.0.1:8307)
Sat Mar 11 12:31:58 2017 (11080): [Warning] Unable to create a network stream

这是黑火特工的日志输出。正如你所看到的,他似乎从来没有联系过:

代码语言:javascript
复制
[2017-03-11T12:43:03+01:00] DEBUG: blackfire-agent 1.9.2 windows amd64 gc 2016-12-14T10:46:38+0000
[2017-03-11T12:43:03+01:00] DEBUG: Retrieving public keys from API
[2017-03-11T12:43:03+01:00] DEBUG: Fetching public keys from API
[2017-03-11T12:43:03+01:00] DEBUG: Sending request GET https://blackfire.io/agent-api/v1/public-keys
[2017-03-11T12:43:03+01:00] DEBUG: API answered with status code: 200
[2017-03-11T12:43:03+01:00] DEBUG: Unmarshalled json result: &{[{RWQUOK8z--------------------------Ac= 20170426}]}
[2017-03-11T12:43:03+01:00] DEBUG: Started verification of '1' public keys
[2017-03-11T12:43:03+01:00] DEBUG: Retrieving specs from the API
[2017-03-11T12:43:03+01:00] DEBUG: Fetching specs from API
[2017-03-11T12:43:03+01:00] DEBUG: Sending request GET https://blackfire.io/agent-api/v1/specs
[2017-03-11T12:43:03+01:00] DEBUG: API answered with status code: 200
[2017-03-11T12:43:03+01:00] DEBUG: Merging spec from the API and local spec
[2017-03-11T12:43:03+01:00] DEBUG: New value of DefaultSpec.LastMaxAge:  24h0m0s
[2017-03-11T12:43:03+01:00] DEBUG: Listening for connections on 'tcp://127.0.0.1:8307'
[2017-03-11T12:43:03+01:00] DEBUG: Waiting for new connection

这里有两个截图

第一个显示禁用的Xdebug的

第二个显示我的blackfire php配置(xxxx和yyyy是屏幕截图的fac格值)

Windows防火墙已被禁用。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-13 09:43:17

在您的php.ini配置中有一个错误,对于tcp://127.0.0.1:8307值,您应该使用tcp://127.0.0.1:8307而不是utcp://127.0.0.1:8307 (注意,utcp / tcp类型)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42735128

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档