2017-03-28 12 views
0

내 컴퓨터에 laravel을 설치했는데, PhpStorm, Git 명령 프롬프트의 laravel 명령은 물론 작곡가와 PHP 장인이 잘 작동합니다. 그러나 명령Laravel 개발 서버가 창을 작동하지 않습니다.

php artisan serve 

것이 내게 주소를 액세스하려고하면

Laravel development server started: <http://127.0.0.1:8000> 

작동하지 않는 주소를 제공, 그것은 "이 사이트에 도달 할 수 없다"고 말했다. 그건 그렇고, 난 크롬을 사용하고 있습니다 이것이 왜 그리고 어떻게 작동하도록 만들 수 있습니까?

미리 감사드립니다.

+2

시도 PHP는 장인 제공 --port = 8080 다음 로컬 호스트로 이동 : 8080 또한 방랑/홈스테이 https://laravel.com/docs/5.4/homestead – Indra

+0

고마워, 그것을 사용하여 recomand! 나는 앞으로 농가를 고려해 볼 수 있습니다. 잠시 동안 laravel의 기초를 배우고 싶습니다. xampp을 사용하고 있습니다. –

+1

wamp를 사용하면 wamp에서 호스트를 추가하고 브라우저에서 웹 사이트에 액세스 할 수 있습니다. 당신이주는 주소 : laravel.dev. 그렇게하면 많은 웹 사이트를 병렬로 실행할 수 있습니다 (https://john-dugan.com/wamp-vhost-setup/) – Indra

답변

0

laravel 또는 Windows의 모든 PHP 응용 프로그램을 개발하는 데 Laragon을 사용하는 것이 좋습니다. 매우 사용하기 쉽고 빠른 개발 환경을 구축 할 것입니다. 나는 이것을 1 년 넘게 사용 해왔다. 그것을 얻으십시오 : https://laragon.org/

이 응용 프로그램은 Windows 사용자에게 특정입니다. 일부 기능에는 다음이 포함됩니다. http://www.danfletcherblog.ca/2017/02/install-laravel-5-4-windows-fast-using-laragon-%E2%9C%94/

는이 게시물의 비디오 튜토리얼 :

Cmder 
Git 
Node.js 
NPM 
SSH 
Putty 
PHP 7 & 5.6 (Easily switchable with one click) 
Activate/deactivate PHP extensions on the fly 
xDebug 
Composer 
Apache 
MariaDB/MySQL 
phpMyAdmin 
Full Lumen and Laravel support 
Auto create virtual hosts 
Mail Catcher - Laragon will show a small window on the bottom right of your screen and help you quickly view content of the generated email 
Mail Sender - You can use mail() function to send mail to the Internet easily and effortlessly 
Mail Analyzer: Analyze what happens when an email is sent and show helpful information to make sure that your email configurations are correct. 
ngrok - allows connections from the Internet to the local server 

이 laragon 및 laravel 5.4에 대한 튜토리얼 https://youtu.be/pHQOdXY2AZU?list=PL0Nx259JjLcGqXg5kpTifqQ9GFoQ2qGPy

+1

답변을보다 명확하게 작성하고 laragon 혜택을 추가하십시오. 농가, 주차 대행사 또는 평범한 구식 험프. 그것은 미래에 다른 사람을 도울 것입니다. – Indra