
我已經安裝了 nginx、MySQL、HHVM 和 Composer,一切正常,因此我安裝了 Laravel CLI 以laravel new blog
從終端運行,但是當我運行它時,出現此錯誤:
eduardo@eduardo-desktop:~/www$ laravel new blog
Crafting application...
[GuzzleHttp\Exception\ConnectException]
cURL error 28: Operation timed out after 29996 milliseconds with 2800182 ou
t of 7820187 bytes received
[GuzzleHttp\Ring\Exception\ConnectException]
cURL error 28: Operation timed out after 29996 milliseconds with 2800182 ou
t of 7820187 bytes received
new <name>
有人可以幫我嗎?
先感謝您! :D
答案1
您需要增加default_socket_timeout
PHP 設定檔 ( ~/php.ini
),例如
default_socket_timeout = 300
或設定它使用捲曲在你的 PHP 程式碼中,例如:
curl_setopt($res, CURLOPT_TIMEOUT, 300);