【发布时间】:2020-11-07 00:04:04
【问题描述】:
我只是在我的 ubuntu 20.4 中使用 php.4 / mysql 安装了一个 laravel 应用程序
一切正常,laravel 安装,作曲家,迁移,播种,php artisan 服务。
但是当我尝试访问: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
我该怎么办?
【问题讨论】:
-
您是否设置了基本网址?在您的 .env 或配置中?
-
APP_URL=http://localhost:8000 -
尝试改成:
http://localhost -
改了还是一样的错误
-
重启本地主机。如果你有缓存,运行
php artisan config:clear