php - 我该如何解决这个 [RuntimeException] Elasticsearch-PHP 需要 cURL 或自定义 HTTP 处理程序?
问题描述
我尝试使用 brew ( brew install php --build-from-source
) 使用 curl 构建 php,然后在 apache 中使用 libphp7.so。php -m
表明它具有 curl 模块。此错误在 Laravel 日志中和运行时输出composer update
:
[RuntimeException] Elasticsearch-PHP 需要 cURL 或自定义 HTTP 处理程序
解决方案
推荐阅读
- python - 数据框值的正则表达式
- jquery - Select2 css问题
- sql - 在组织之间存在父子关系的 SQL 中组合相关组织记录
- html - 如何用图像填充空白
- java - 如何在 Hibernate Java obj 中添加 @XmlTransient
- sql - 与行的代数表达式相比,聚合函数返回不同的结果
- python - 在熊猫中减去 timedelta
- rust - 从实现 Drop 的结构中移动值时,如何避免不必要的匹配检查或使用不安全?
- reactjs - 使用 React Hook 时如何在组件卸载时取消绑定 Pusherjs 事件?
- umbraco - 向 Umbraco 8 成员索引添加一个字段