php代码中设置了
set_time_limit(0);
没有效果再查php-fcgi的配置php-fpm.confrequest_terminate_timeout=0把request_terminate_timeout关闭,程序可以正常执行了,问题解决