Home  >  Article  >  Backend Development  >  php代码exec("kill $pid"$op,$returns)没法杀死linux虚拟机下的进程

php代码exec("kill $pid"$op,$returns)没法杀死linux虚拟机下的进程

WBOY
WBOYOriginal
2016-06-13 12:20:031632browse

php代码exec("kill $pid",$op,$returns)无法杀死linux虚拟机下的进程
如题,我在linux下写php代码exec("kill $pid",$op,$returns),通过pid杀进程,执行后,返回的一直都是“1”,就是说一直执行不成功,执行完后进程id还在。执行kill调用的文件我已经给了最大权限了。网上有说是php.ini的配置问题啥的,但找了一天了也没找到任何值得参考的意见,求各位大神给些意见啊!!!!!

------解决思路----------------------
没有权限。
把apache的权限设为root看看。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn