homestead+imagick

1. vagrant ssh input commands by the terminal in the virtual machine
2 enters the default folder Code Code CD /
3. -s switch root user the sudo
4. Update Package Update Manager GET-APT
5. The installation imagemagick: apt-get install imagemagick, after completion of the installation to be viewed through imagemagick convert command version
6. installation imagick: APT-GET libmagickwand the install PKG-config-dev -Y
7. the search pecl.php.net to expand compressed imagick [portal] (https: // pecl.php.net/package/imagick)
8. The enter / tmp temporary directory CD / tmp
9. The https://pecl.php.net/get/imagick-3.4.4.tgz the download package wget
10. The installation package codecs tar xvzf imagick-3.4.4.tgz
after decompression into the directory 11. imagick-3.4.4 CD
12. the run command phpize (if no command, the path completion php)
13. run configure command ./configure
14. compile and install make install
Related resources file rm -rf /tmp/imagick-3.4.4* delete tmp directory under 15.
16. enter the corresponding version of php modify the php.ini
  cd /etc/php/7.1/cli/
  echo extension = imagick.so >> php.ini # in php.ini his party
  'extension = imagick.so' php.ini # grep -n view the inserted number of rows (this step is just to check whether the modified php.ini)
  nano +1873 php.ini # 1873 from the beginning of the line to see php, ini file (this step just to check whether to modify the php.ini)
  cd ../fpm/
  echo the php.ini Extension = imagick.so >>
17. the last
restart php service php.7.1-fpm restart
restart nginx service nginx restart

Guess you like

Origin www.cnblogs.com/zgxblog/p/11442084.html