简体   繁体   English

杀死在FastCGI / IIS上运行的特定PHP脚本?

[英]Kill a specific PHP script running on FastCGI / IIS?

I'm a PHP developer, but honestly my knowledge of server management is somewhat lacking. 我是PHP开发人员,但老实说,我对服务器管理的知识有些缺乏。

I fired off a script today that took a regrettably long time to run, and because it had an embedded call to ignore_user_abort() , pressing "stop" in the browser was obviously futile. 今天我解雇了一个脚本,该脚本花费了很长的时间才能运行,并且由于该脚本具有对ignore_user_abort()的嵌入式调用, ignore_user_abort()在浏览器中按“停止”显然是徒劳的。

There was a time limit of 15 minutes enforced in the FastCGI settings, but this was still incessantly long since I really had to just wait it out before I could continue with anything else. 在FastCGI设置中,有15分钟的时间限制,但这仍然持续了很长时间,因为我真的不得不等待一段时间才能继续进行其他操作。

Is there some way to manage/kill whatever PHP scripts are being executed by FastCGI at any given moment? 有什么方法可以管理/杀死FastCGI在任何给定时刻执行的任何PHP脚本?

Does the php process appear in the taskmanager? php进程是否出现在taskmanager中?
I wonder what happens if you kill it there. 我不知道如果在那里杀死它会发生什么。 Will the IIS start another one to handle the next request? IIS将启动另一个来处理下一个请求吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM