停止运行PHP服务器,命令行 [英] Stop running PHP server, command line

查看:39
本文介绍了停止运行PHP服务器,命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我已经完成了 php -S localhost:8000 ,但是我不再需要它了,我需要我的8000 localhost.如何停止php服务器?

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?

推荐答案

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.

如果您没有打开该终端,则必须找到该进程的 PID 并将其终止.

If you don't have that terminal open, you have to find the PID of the process and kill that.

要找到 PID 并终止该进程,请

To find the PID and kill the process, here is a nice explanation.

这篇关于停止运行PHP服务器,命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆