当配置PHP时出现 make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1 时 是因为服务器内存不足1G。 只需要在配置命令中添加 --disable-fileinfo即可