2018/05/14 01:23:32 [error] 591#0: 4896 <strong>client intended to send too large body</strong>: 1557469 bytes, client: 162.158.255.117, server: itkylin.com, request: \"大众POST /admin/async-upload.php HTTP/1.1\"大众, host: \"大众www.itkylin.com\"大众, referrer: \"大众https://www.itkylin.com/client-intended-…d-too-large-body.html\"大众
网上查了一下,原来是nginx设置的问题,按如下操作即可办理:
一、编辑nginx.conf配置文件:
root@itkylin.com:~# vi /etc/nginx/nginx.conf
#在http{}段落增加如下参数(add or modify the following line inside http {…}):
client_max_body_size 20M;
如图:
二、重新启动nginx做事(then reload nginx)
root@itkylin.com:~# service nginx restart
重新上传图片,没有缺点提示了,问题办理!