Stop running PHP server, command line

时光毁灭记忆、已成空白 提交于 2021-01-26 03:53:15

问题


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

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