
nginx, MySQL, HHVM 및 Composer를 이미 설치했으며 모든 것이 작동하므로 laravel new blog
터미널에서 실행하기 위해 Laravel CLI를 설치했지만 실행하면 다음 오류가 발생합니다.
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>
누군가 나를 도와줄 수 있나요?
미리 감사드립니다! :디
답변1
default_socket_timeout
PHP 구성 파일( ~/php.ini
) 을 늘려야 합니다 . 예:
default_socket_timeout = 300
또는 다음을 사용하여 설정하세요.곱슬 곱슬하다다음과 같은 PHP 코드에서:
curl_setopt($res, CURLOPT_TIMEOUT, 300);