生产销售系统出现 504 Gateway Timeout 异常,其实就是服务器响应太慢导致nginx带来超时,先不说服务端慢的优化问题:只是单纯的解决504.到网上发现了一篇文章fix it Add these variables to nginx.conf file: proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 600; Then restart nginx: s
今天用PHP执行一个非常耗时的文件[ps:自己有用,大概3分钟] 但是执行到一分钟后显示 nginx 504 Gateway Time-out 于是修改php-ini.php中的max_execution_time =1200;重启php,还是没用 突然明白,如果超时是php设置的问题,会报以下错误 Fatal error: Maximum execution time of 60 seconds exceeded in E:\ceshi\001\map.php on line 27 所以问题出