Nginx-php-upstream-timed-out

#参考 https://blog.csdn.net/gaojinshan/article/details/38512025

Nginx php upstream timed out (110: Connection timed out) while reading response header from upstream, client: ,

vim /etc/nginx/nginx.conf

        large_client_header_buffers 4 16k;
        client_max_body_size 300m;
        client_body_buffer_size 128k;
        proxy_connect_timeout 600;
        proxy_read_timeout 600;
        proxy_send_timeout 600;
        proxy_buffer_size 64k;
        proxy_buffers   4 32k;
        proxy_busy_buffers_size 64k;
        proxy_temp_file_write_size 64k;



#参考http://www.ttlsa.com/nginx/nginx-upstream-timed-out-110-connection-timed-out/
location ~* .php$ {
    include         fastcgi_params;
    fastcgi_index   index.php;
    fastcgi_read_timeout 150;
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
}