1. 以下代码加入 /etc/nginx/nginx.conf 文件中的 http{ ... } 块中 client_max_body_size 8M; 2. PHP 设置上传大小 打开 /etc/php5/fpm/php.ini 文件中 修改以下几个参数 ;This sets the maximum amount of memory in bytes that a script is allowed to allocate memory_limit = 32M ;The maximum siz