$ pecl install imagick
当提示Please provide the prefix of Imagemagick installation [autodetect] :直接按Enter
Please provide the prefix of Imagemagick installation [autodetect] :
$ bash -c "echo extension=imagick.so > /etc/phpX.Y-sp/conf.d/imagick.ini" $ service php-fpm restart