php - Warning: exec() [function.exec]: Unable to fork,配置git的webhook的问题

查看:206
本文介绍了php - Warning: exec() [function.exec]: Unable to fork,配置git的webhook的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

我的服务器是阿里云的Win server 2008
git托管仓库是coding,我配置的hook.php内容是
exec("git pull", $array2);var_export($array2);
但是页面返回
Warning: exec() [function.exec]: Unable to fork [git pull]
这是为什么呢?
求助?

解决方案

可能是资源被耗尽

Forking means in this case the operation to create a new process using the fork() system call. fork() usually failes because necessary system resources are exhausted, it is likely that memory limits or the maximum number of open processes per system is reached.

源自http://stackoverflow.com/questions/20732394/what-does-the-unable-to-fork-error-mean

这篇关于php - Warning: exec() [function.exec]: Unable to fork,配置git的webhook的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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