官方客服 2017-11-15 15:18:13
php5.3+版本,如果明显感觉到网页打开速度变慢或打不开,可通过修改配置文件解决:
nzcms/config/config.php,其中数据库配置部分:
'db' => array(
'type' => 'mysql', //mysql pdo_msyql可选
'master' => array(
'host' => 'localhost', //php5.3以上改为127.0.0.1
'port' => '3306',
......
),
),
将host中的localhost,改为127.0.0.1
另外,也可通过修改系统的hosts文件来解决
hosts文件位于 C:/Windows/System32/drivers/etc
在hosts文件最后一行加上:
127.0.0.1 localhost