上传文件限制
----------------------------------------------------------
修改文件： 
/etc/nginx/nginx.conf

http 节点

    client_max_body_size 40m;

修改文件：
/etc/php.ini

post_max_size = 80M
upload_max_filesize = 20M

重启：
systemctl stop php-fpm
systemctl start php-fpm
service nginx restart



nginx上传文件超时
---------------------------------------------------------
504 gateway time-out怎么解决

# 配置段: http, server, location

# 通常keepalive_timeout应该比client_body_timeout大
keepalive_timeout 120s;

#指定客户端与服务端建立连接后发送 request body 的超时时间，如果连续的60s内没有收到客户端的1个字节, 返回408
client_body_timeout 20s;

#客户端向服务端发送一个完整的 request header 的超时时间，如果60s内没有收到完整的http包头, 返回408
client_header_timeout 10s;

# 服务端向客户端传输数据的超时时间
keepalive_timeout 120s;





