PHP artisan serve shuts down after running once

别等时光非礼了梦想. 提交于 2019-12-13 05:13:39

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/21058785/php-artisan-serve-shuts-down-after-running-once

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!