运行一次后,PHP的技术人员就会关闭 [英] PHP artisan serve shuts down after running once
问题描述
我使用Laravel 4,运行php 5.4和MAMP,并且已经克隆这个回购,但出于某种原因 php artisan serve
运行一次后关闭( localhost:8000运行一次,然后停止,然后我必须使用PHP的技术人员再次运行它))。任何想法,以防止它关闭?
我遇到同样的问题,我想我终于找到了解决方案。在MAMP中,尝试关闭XCache。这为我解决了它。
在MAMP对话框中,转到首选项 - > PHP
。将XCache的下拉菜单切换到APC。
I'm using Laravel 4, running php 5.4 and MAMP, and have cloned this repo but for some reason php artisan serve
shuts down after running one time (localhost:8000 runs once, then stops, then I have to use php artisan serve to run it again). Any ideas to keep it from shutting down?
Here is where this question originated.
I had the same problem and I think I've finally found a solution. In MAMP, try turning off XCache. This solved it for me.
From the MAMP dialog, go to Preferences->PHP
. Switch the dropdown from XCache to APC.
这篇关于运行一次后,PHP的技术人员就会关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!