解决Nginx 504 Gateway Time-out问题

解决方案:在http里设置FastCGI相关参数,如:

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  5;
    include extra/lotmall.conf;
    
    #FastCGI相关参数是为了改善网站的性能:减少资源占用,提高访问速度。 
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 8 128k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
}

 

posted on 2017-05-10 10:59  Ruthless  阅读(634)  评论(0编辑  收藏  举报