使用作曲家安装Elasticsearch



我正在尝试使用Composer安装Elasticsearch。我下载了作曲家,在命令行中执行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?

这似乎是代理设置的问题,就像根据您具有Cannot connect to HTTPS server through proxy的日志一样。这里有一个与此相关的问题。如果您尚未经历它,请这样做。

一个建议是在用户级别上在Windows上设置代理" http_proxy = http://username:password@proxy.yourdomain.com:port"。

composer require matchish/laravel-scout-elasticsearch

最新更新