📜  如何增加 nginx 最大文件上传大小 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:12.246000             🧑  作者: Mango

代码示例1
sudo nano /etc/nginx/nginx.conf
# edit/add the following line 
client_max_body_size 8M; # put the size that is enough
sudo nano /etc/php/php.ini
# edit the following
upload_max_filesize=8M # also put what is enough