问题
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