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

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

WBOY
Release: 2016-06-13 12:20:03
Original
1698 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template