服务器启动端口花费太多时间

server taking too much time to start a port

我正在使用 Ubuntu 14.04,我正在尝试安装 Laravel 框架。为此,我在终端中有 运行 这段代码:

php artisan serve

等了 4-5 分钟后,我得到了这个回复:

Laravel development server started on http://localhost:8000/

[Tue May 26 13:19:40 2015] 127.0.0.1:44800 [200]: /favicon.ico

[Tue May 26 13:19:40 2015] 127.0.0.1:44801 [200]: /favicon.ico

等了10多分钟后,虽然终端正在工作,但我没有更多的反应。

真的需要那么多时间吗?或者有什么问题?

then, what can I do? although port 8000 has been started, localhost:8000 shows that, Sorry, the page you are looking for could not be found.

你需要停止服务器和运行这个指定public目录php -S localhost:8000 -t public/作为根文件root

的命令


你也可以 cd 到你的 laravelProject/public 然后 php -S localhost:8000