1. 安装并启用Big File Uploads插件
插件 → 安装新插件

媒体→添加文件

修改后Save保存

2. 修改Nginx配置文件
bash
# 我的配置在wordpress.conf文件中
vim /etc/nginx/conf.d/wordpress.conf
在server节点中加入下面这句配置
# 文件上传大小限制
client_max_body_size 500M;
bash
# 重启nginx
systemctl reload nginx