Centos默认没有将php-mcrypt包含在内,而使用yum install php-mcrypt提示没有这个包.处理方法:首先,安装对应的Release包: rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm 接着更新: yum update 然后键入命令 yum install php-mcrypt