[英]Laravel Guzzle - cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
[英]GuzzleHttp\Exception\RequestException cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) when installing laravel 6
我只是在我的 ubuntu 20.4 中安裝了一個 laravel 應用程序和 php.4 / Z81C3B0080DAD53BFEFE27
一切正常,laravel 安裝,作曲家,遷移,播種,php 工匠服務。
但是當我嘗試訪問:http://localhost:8000 時,我得到:
GuzzleHttp\Exception\RequestException cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
我已經嘗試過:
php artisan config:cache
php artisan cache:clear
我應該怎么辦?
對於快速解決方案,您可以在使用本地環境時禁用 Guzzle 的 SSL 驗證。 檢查您的鏈接是否存在。
如果您在真實服務器上遇到此問題,您可以嘗試另一種方法,您可以從http://curl.haxx.se/ca/cacert.pem下載cacert.pem
文件(參見原始帖子)並將此文件設置為 guzzle。 下面的例子
$guzzle = new \Guzzle\Http\Client();
$guzzle->setDefaultOption('verify', '/path/to/cacert.pem');
如果您在服務器上收到此錯誤,請聯系支持。 這是服務器配置的問題,上面的所有解決方案都是“快速修復”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.