php默认的安装有几个模块需要自己添加,网上说的较多的是重新编译,我们这里使用扩展的方式来完成。 1.安装php-mysql模块 yum install php-mysql 重启php 2.添加mb_strlen()函数支持 yum install php-mbstring 重启php