简体   繁体   English

ec2 amazon linux 413 请求实体太大错误

[英]ec2 amazon linux 413 Request Entity Too Large Error

Getting "413 Request Entity Too Large" in amazon linux installed on ec2 instance on uploading 5 MB or large file.在上传 5 MB 或大文件时,在 ec2 实例上安装的亚马逊 linux 中获取“413 请求实体太大”。 Want to transfer around 100 MB data but not sure what I am doing wrong.想要传输大约 100 MB 的数据,但不确定我做错了什么。

问题

I tried adding "client_max_body_size 100" inside nginx.conf file like this.我尝试像这样在 nginx.conf 文件中添加“client_max_body_size 100”。

在此处输入图像描述

And restarted nginx multiple times using "sudo service reload nginx", "sudo systemctl reload nginx" commands, but still getting this issue again and again.并使用“sudo service reload nginx”、“sudo systemctl reload nginx”命令多次重启nginx,但仍然一次又一次地遇到这个问题。

I am very new to nginx so not sure if I am doing anything wrong or not.我是 nginx 的新手,所以不确定我是否做错了什么。 Can anyone please guide through steps to solve this issue?任何人都可以指导解决此问题的步骤吗? That will be really helpful!这真的很有帮助!

Thank you.谢谢你。

I fixed the issue by replacing 100 with 100M as value of client_max_body_size 100M.我通过将 100 替换为 100M 作为 client_max_body_size 100M 的值来解决此问题。

and restart nginx using "systemctl restart nginx".并使用“systemctl restart nginx”重启 nginx。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS SQS 异常“413 请求实体太大” - AWS SQS Exception "413 Request Entity Too Large" Twine GCP 工件注册表 - HTTPError:413 请求实体太大 - Twine GCP Artifact registry - HTTPError: 413 Request Entity Too Large 为什么当尝试上传大视频时,App Engine gcloud 会抛出错误 413 entity too large? - why when try upload a large video, app engine gcloud throws error 413 entity too large? 413 请求实体太大 - Elastic Beanstalk + 负载均衡器 + Node.js 应用程序 - 413 Request Entity Too Large - Elastic Beanstalk + Load Balancer + Node.js application EC2 Amazon Linux 2 - 禁用根用户 - EC2 Amazon Linux 2 - Disable root user 将 EC2 RHEL 实例迁移到 Amazon Linux 2 - Migrating EC2 RHEL instance to Amazon Linux 2 如何为 java 堆大小配置 Amazon Linux ec2 实例? - How to configure Amazon Linux ec2 instance for java heap size? EC2 Amazon 中的时区数据库多久更新一次 Linux 2 - How often timezone database is updated in EC2 Amazon Linux 2 Jenkins 的 Amazon EC2 插件:错误:无法启动 EC2 代理 - Amazon EC2 Plugin for Jenkins: ERROR: Unable to launch the agent for EC2 EC2 预留实例 Linux/UNIX (Amazon VPC) 和 Linux/UNIX 之间有什么区别? - What's the difference between EC2 Reserved Instance Linux/UNIX (Amazon VPC) and Linux/UNIX?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM