我正在尝试使用composer安装Elasticsearch。我下载了composer,它在命令行中执行composer -v
时工作正常。然后我创建了一个名为composer.json的文件,并在该文件的目录中执行composer install
。这是我之后收到的:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing react/promise (v2.5.1): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download react/promise from dist: The "https://api.github.com/repos/reactphp/promise/zipball/62785ae604c8d69725d693eb370e1d67e94c4053" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
在线搜索后,我尝试更改我的PHP.ini ca-bundle证书文件路径,但它仍然无效。我使用的PHP版本是5.6.25,它在WAMP服务器上。如何修复此错误以便安装Elasticsearch?
答案 0 :(得分:0)
根据您拥有的日志Cannot connect to HTTPS server through proxy
,这似乎是代理设置的问题。有一个与此here相关的问题线程。如果你还没有完成它,请这样做。
一个建议是在用户级“HTTP_PROXY = http://username:password@proxy.yourdomain.com:port”的窗口上设置代理。
答案 1 :(得分:0)
composer require matchish/laravel-scout-elasticsearch
https://github.com/matchish/laravel-scout-elasticsearch#search-amongst-multiple-models