今天在往mysql中上传文件的时候,发现有的文件插入失败。 经过检查是max_allowed_packet 这个参数决定的。 修改my.ini 中 max_allowed_packet = 10M 就可以了。 Read the rest of this entry
Archive for March, 2022
[Linux] 修改php-fpm配置
2022.3 15
服务器是阿里云的最低配置,内存只有1G。 刚开始的时候,mysql用的是默认配置,时不时被kill掉。后来修改了mysql的配置就没事了。 最近登陆wordpress后台,感觉太慢了。 从网上 搜了下,修改了php-fpm的配置, 从pm = dynamic 修改 Read the rest of this entry