-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
<?php | ||
return array( | ||
//'配置项'=>'配置值' | ||
|
||
/* 数据库设置 */ | ||
'DB_TYPE' => '', // 数据库类型 | ||
'DB_HOST' => '', // 服务器地址 | ||
'DB_NAME' => '', // 数据库名 | ||
'DB_USER' => '', // 用户名 | ||
'DB_PWD' => '', // 密码 | ||
'DB_PORT' => '', // 端口 | ||
'DB_PREFIX' => '', // 数据库表前缀 | ||
'DB_PARAMS' => array(), // 数据库连接参数 | ||
'DB_DEBUG' => TRUE, // 数据库调试模式 开启后可以记录SQL日志 | ||
'DB_FIELDS_CACHE' => true, // 启用字段缓存 | ||
'DB_CHARSET' => 'utf8', // 数据库编码默认采用utf8 | ||
'DB_DEPLOY_TYPE' => 0, // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) | ||
'DB_RW_SEPARATE' => false, // 数据库读写是否分离 主从式有效 | ||
'DB_MASTER_NUM' => 1, // 读写分离后 主服务器数量 | ||
'DB_SLAVE_NO' => '', // 指定从服务器序号 | ||
|
||
/* Redis Master 设置 */ | ||
'REDIS_MASTER' => array( | ||
'host' => '127.0.0.1', | ||
'port' => 6379, | ||
'auth' => 'mastertestpassword', | ||
), | ||
'REDIS_SLAVE1' => array( | ||
'HOST' => '127.0.0.1', | ||
'PORT' => 6000, | ||
'AUTH' => '', | ||
) | ||
); |