我尝试使用Blackfire配置HTTP请求。我已经安装了这些元素:
C:\Users\a.t>blackfire config
)但我仍然发现错误:
C:\Users\a.t>blackfire curl --resolve 'simdate.dev:80:127.0.0.1' http://simdate.dev/
您是否有权对此页面进行介绍?没有探测响应,缺少PHP扩展或中继代理的无效签名。
这是我在php中声明的日志文件的日志文件:
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
这是blackfire-agent的日志输出。正如你所看到的那样,他似乎永远无法联系到:
[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是截图的事实值)
Windows防火墙已被禁用。
答案 0 :(得分:2)
你的php.ini配置中有一个拼写错误,你应该使用tcp://127.0.0.1:8307
代替utcp://127.0.0.1:8307
(注意utcp
/ tcp
拼写错误){ {1}}值