一.php实现多进程 PHP有个pcntl_fork的函数可以实现多进程,但要加载pcntl拓展,而且只有在linux下才能编译这个拓展. 先代码: <?php$arr = ['30000000','500000000',['7000000000','8000000']];foreach($arr as $key=>$item){ $pid[$key] = pcntl_fork(); if ($pid[$key] == -1) { die('could not fork'); } else i…