nginx中阻止了大文件上传
php也阻止了大文件上传
需要两边配置都修改一下
nginx中修改/etc/nginx/nginx.conf
在其中的http{}添加代码client_max_body_size 20m;
php中,在etc/php.ini中修改
upload_max_filesize = 2M 为 upload_max_filesize = 20M
post_max_size = 8M 为 post_max_size = 20M
输入systemctl restart nginx.service重启nginx
输入systemctl restart httpd.service重启apache