先修改 postfix 的值,运行以下命令(这里以修改256M为例):
postconf -e message_size_limit='254857600'
postconf -e mailbox_size_limit='254857600'
重启postfix服务
systemctl restart postfix
vim /etc/php.ini #编辑文件,修改相关值为以下内容并保存
memory_limit = 512M;
upload_max_filesize = 250M;
post_max_size = 250M;
max_input_time = 900
max_execution_time = 900
重启php-fpm进程:
systemctl restart php-fpm
vim /etc/nginx/conf-enabled/client_max_body_size.conf
client_max_body_size 250m;
重启nginx服务:
systemctl restart nginx