在单纯php-fpm+ nginx的情况下,出现这个问题
说明fastcgi设置超时时间太短
在fastcgi_params中加入如下语句,问题解决
fastcgi_buffers 8 128k; fastcgi_buffer_size 128k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300;
Leave a Reply