yum install epel-release //扩展包更新包 yum update //更新yum源 yum install -y libmcrypt libmcrypt-devel mcrypt mhash 就ok了