• 在 php 官网下载 mcrypt 包,php 扩展官网

      # wget  http://pecl.php.net/get/mcrypt-1.0.1.tgz
      # tar xf mcrypt-1.0.1.tgz
      # cd mcrypt-1.0.1
  • 编译安装 mcrypt

      # /usr/local/php/bin/phpize
      # ./configure --with-php-config=/usr/local/php/bin/php-config  && make && make install
  • 在php.ini加上扩展即可

    extension=mcrypt.so
  • 重启 php-fpm

    lnmp restart

转载--php 7.2 安装 mcrypt 扩展

 

参考博文:php 7.2 安装 mcrypt 扩展

 

相关文章:

  • 2021-05-21
  • 2021-11-16
  • 2021-12-23
  • 2021-08-17
猜你喜欢
  • 2021-11-12
  • 2022-02-11
  • 2022-02-20
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案