找到PHP.ini位置,可以通过phpinfo()查看
编辑php
vi/etc/php.ini |
修改
①upload_max_filesize 默认2m
②memory_limit 默认128m
③post_max_size 默认8m
修改保存后重启php-fpm和nginx
/etc/init.d/php-fpmstart /etc/init.d/php-fpmstop /etc/init.d/php-fpmrestart /etc/init.d/php-fpmreload |
service nginx start service nginx stop service nginx restart service nginx reload |
查看是否修改了