Laravel开发服务器无法运行Windows

问题描述 投票:0回答:1

我在我的计算机上安装了laravel,它可以通过PhpStorm,Git命令提示符中的laravel命令,以及作曲家和php工匠的工作正常工作。但对于命令

php artisan serve

它给了我一个不起作用的地址

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

如果我尝试访问该地址,则表示“无法访问此站点”。顺便说一句,我使用Chrome为什么会这样,我怎么能让它工作?

先感谢您。

php git laravel serve
1个回答
0
投票

我建议您使用Laragon开发laravel甚至是Windows上的任何php应用程序。它将建立一个非常易于使用和快速的开发环境。我已经使用它超过一年了。来吧:https://laragon.org/

此应用程序特定于Windows用户。一些功能包括;

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的教程:http://www.danfletcherblog.ca/2017/02/install-laravel-5-4-windows-fast-using-laragon-%E2%9C%94/

这是帖子的视频教程:https://youtu.be/pHQOdXY2AZU?list=PL0Nx259JjLcGqXg5kpTifqQ9GFoQ2qGPy

© www.soinside.com 2019 - 2024. All rights reserved.