php - 通过后端仪表板上传 csv 文件时出现 nginx 错误 504 网关超时
问题描述
我一直在尝试通过我的 laravel 站点的后端仪表板上传一个 csv 文件,但它抛出了一个错误 504 gateway Timeout nginx 。(这在分期中非常有效)
在寻找解决方案时,我更新了以下参数。
在 php.ini --->
- post_max_size
- 上传最大文件大小
- max_execution_time
- 最大输入时间
在 nginx 配置中--->
在检查 nginx /php 日志时,它没有在日志中显示任何错误,而且我也尝试过启用慢日志,但它仍然没有显示任何错误。
谁能帮我解决这个问题。
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 1000s;
client_max_body_size 100M;
send_timeout 1000;
keepalive_timeout 1000;
解决方案
推荐阅读
- javascript - (巴雷拉斯 - 巴西,马什哈德 - 伊朗)等国家/地区的时区缩写为 -03,+330,而不是 BRT 和 IRST
- c# - 能够在本地下载文件,但不能从 Azure
- xslt - 如何在 xslt 转换中转换肥皂故障消息
- java - 出现此错误的“没有 GET 映射”的原因是什么?
- reactjs - 页面重新加载导致 redux 状态变为 DEFAULT (REACT/REDUX)
- mysql - MySQL选择分组整数的范围
- android - 如何解决:java.lang.IllegalStateException:无法执行此操作,因为连接池已关闭?
- php - 如何以卢比设置印度的产品价格,以美元设置印度的产品价格?
- oracle - 如何为 Oracle Forms 上的显示标签制作包装内容按钮
- sql - 在 SQL 表中的列中增加值