简体   繁体   中英

Nginx and PHP5 timeout error 504

Hi I'm getting a timeout error (504 -gateway timeout) with Nginx and PHP5-fast cgi. I'm not sure why this is happening but when I restart php-fpm everything seems to work fine.

How can I debug this?

I have no errors in dmesg

fastcgi_intercept_errors on;
fastcgi_ignore_client_abort on;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_max_temp_file_size 0;
fastcgi_index index.php;

检查您的PHP-FPM池以了解各种超时设置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM