>  기사  >  백엔드 개발  >  Warning: exec() [function.exec]: Unable to fork,配置git的webhook的问题

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

WBOY
WBOY원래의
2016-08-04 09:21:141794검색

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

回复内容:

我的服务器是阿里云的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

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.