正德厚生,臻于至善

nginx调整附件大小

vi /etc/php.ini
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

vi /etc/nginx/nginx.conf
client_max_body_size 128m
sed -i 's#post_max_size = 128M#post_max_size = 1024M#g' /etc/php.ini
sed -i 's#upload_max_filesize = 128M#upload_max_filesize = 1024M#g' /etc/php.ini
sed -i 's#client_max_body_size 128m#client_max_body_size 1024m#g' /etc/nginx/nginx.conf
赞(0) 打赏
未经允许不得转载:徐万新之路 » nginx调整附件大小

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册