我编辑/usr/local/php/etc/php.ini文件中
;extension=php_gd2.dll//去掉了前面的 ";"
extension=php_gd2.dll
然后如下报错
service php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm [14-Oct-2016 23:27:39] NOTICE: PHP message: PHP Warning: PHP S tartup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-deb ug-non-zts-20151012/php_gd2.dll' - /usr/local/php/lib/php/extensions/no-debug-no n-zts-20151012/php_gd2.dll: cannot open shared object file: No such file or dire ctory in Unknown on line 0
done
请问正确开启GD库方法,谢谢