doujiaohuo1096 2017-03-28 11:44
浏览 147

Laravel开发服务器无法运行Windows

I installed laravel on my computer, which works fine through PhpStorm, the laravel commands in the Git command prompt, as well as the composer and the php artisan ones work just fine. But for the command

php artisan serve

it gives me an address which doesn't work

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

if I try to access the address, it says that "this site can't be reached". by the way, I'm using Chrome why this may be and how could I make it to work?

Thank you in advance.

  • 写回答

1条回答 默认 最新

  • dsqve08622 2017-03-28 15:28
    关注

    I recommend you use Laragon for developing laravel or even any php app on windows. It'll set up a very easy to use and fast development environment. I have been using it for over a year now. Get it here: https://laragon.org/

    This app is specific to windows users. Some of the features include;

    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
    

    This is tutorial about laragon and laravel 5.4: http://www.danfletcherblog.ca/2017/02/install-laravel-5-4-windows-fast-using-laragon-%E2%9C%94/

    This is a video tutorial of the post: https://youtu.be/pHQOdXY2AZU?list=PL0Nx259JjLcGqXg5kpTifqQ9GFoQ2qGPy

    评论

报告相同问题?

悬赏问题

  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启