如何解决xhprof的报错failed to shell execute cmd=" "/usr/bin/dot" -Tpng" proc_open() has been ...

来源:互联网 发布:腾讯云和阿里云的区别 编辑:程序博客网 时间:2024/06/09 18:37

前言

前几天想分析一下一个慢行为,看了下xhprof点击看图表的时候,直接报错:
failed to shell execute cmd=” “/usr/bin/dot” -Tpng” proc_open() has been disabled for security reasons

解决

联想到前几天有环境升级应该是配置问题。看了下php.ini,果然有一项disable_functions,竟然把proc_open() 给禁掉了。
为了开启xhprof,之后把这个去掉了。

注意:我们的xhprof采集的是线上数据,但是是在拟真环境看的,即使去了disable_functions=proc_open也没啥问题,因为这不是线上。

阅读全文
0 0
原创粉丝点击