cd /usr/src/php-5.6.2/ext/gdphpize./configuremakemake installvim /data/php/etc/php.ini添加extension_dir = "/data/php/lib/php/extensions/no-debug-non-zts-20131226/"extension=gd.so重启php/etc/init.d/php-fpm restartphp -m | grep gdgd