1. yum install -y cmake3
  2. # 使用cmake3编译libzip
  3. wget https://libzip.org/download/libzip-1.8.0.tar.gz –no-check-certificate
  4. tar zxvf libzip-1.8.0.tar.gz && cd libzip-1.8.0/
  5. mkdir build && cd build/
  6. cmake3 ..
  7. make && make install
  8. # 重新编译zip扩展
  9. wget http://pecl.php.net/get/zip-1.16.0.tgz
  10. tar zxvf zip-1.16.0.tgz && cd zip-1.16.0/
  11. /www/server/php/74/bin/phpize
  12. ./configure –with-php-config=/www/server/php/74/bin/php-config
  13. make && make install
  14. # 启动php验证
  15. /etc/init.d/php-fpm-74 start