我的网站遇到了这个问题。我花了 2 天的时间,但没有成功。
数据库日志中的错误
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www-dev.drupalsite.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html ) in GuzzleHttp\Handler\CurlFactory::createRejection() (line 186 of /var/www/html/site-d8/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php ).
访问网站时出错
The website encountered an unexpected error. Please try again later.
请注意,这是在 ubuntu(VM Virtual Box)上使用 vagrant 的本地开发站点
最佳答案
最后,我通过在 Ubuntu /etc/hosts 文件中添加主机名解决了该问题。
关于ubuntu - GuzzleHttp\Exception\ConnectException : cURL error 6: Could not resolve host,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48465913/