问题
So I've done php -S localhost:8000
, but I don't need it anymore, I need my 8000 localhost back. How to stop the php server?
回答1:
PHP 5.4.0 Development Server started at Thu Jul 21 10:43:28 2011
Listening on localhost:8000
Document root is /home/me/public_html
Press Ctrl-C to quit.
If you don't have that terminal open, you have to find the PID
of the process and kill that.
To find the PID
and kill the process, here is a nice explanation.
回答2:
killall -9 php
That's how I would do it!
来源:https://stackoverflow.com/questions/38561166/stop-running-php-server-command-line