mcrypt扩展从php7.1.0开始废弃;自php7.2.0起,会移到pecl。还好,安装过程不复杂。环境:Centos7.X宝塔面板Nginx+PHP7.3开始安装。1yum安装依赖包:yuminstalllibmcryptlibmcrypt-develmcryptmhash2在php官网下载mcrypt包,php扩展官网wgethttp://pecl.php.net/get/mcrypt-1