Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 任务没有在Ubuntu服务器中使用exec()和posix_kill()终止?_Php_Linux_Pid - Fatal编程技术网

Php 任务没有在Ubuntu服务器中使用exec()和posix_kill()终止?

Php 任务没有在Ubuntu服务器中使用exec()和posix_kill()终止?,php,linux,pid,Php,Linux,Pid,我正在为管理游戏服务器设置dashbord,但我无法使用PID终止进程。我尝试了exec(“kill$PID”)exec(“kill”。$PID)posix_kill($PID,15),但没有成功 posix_kill命令给出“不允许操作”错误,但用户apache是www数据,minecraft脚本的用户也是www数据 会认为在exec('kill'.$PID)中的kill之后至少需要一个空格-exec('kill'.$PID)我试过exec('kill'.$PID)和exec('kill'.$

我正在为管理游戏服务器设置dashbord,但我无法使用PID终止进程。我尝试了
exec(“kill$PID”)exec(“kill”。$PID)posix_kill($PID,15)
,但没有成功

posix_kill命令给出“不允许操作”错误,但用户apache是www数据,minecraft脚本的用户也是
www数据


会认为在
exec('kill'.$PID)中的
kill
之后至少需要一个空格
-
exec('kill'.$PID)
我试过
exec('kill'.$PID)
exec('kill'.$PID)
但它没有改变任何东西。