错误信息
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
使用 Nginx 服务器上传文件时,浏览器报 413 请求过大
解决办法
设置 Nginx 参数
找到配置文件nginx.conf(如没有额外配置其他conf),在http{}或server{}或location{}节点下添加client_max_body_size
client_max_body_size 10m; #(改成你想要的数值)
重载配置
cd /sbin
nginx -s reload