From 5886cb32b7c394388b0dabac8c961045d692d8d3 Mon Sep 17 00:00:00 2001 From: Tinywan <756684177@qq.com> Date: Sun, 3 Jul 2016 15:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=EF=BC=8C=E6=B3=A8=E6=84=8F=EF=BC=9A=E8=BF=99=E9=87=8CRedis?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=98=AF=E6=98=AF=E5=8C=BA?= =?UTF-8?q?=E5=88=86=E5=A4=A7=E5=B0=8F=E5=86=99=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Common/Conf/config.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Backend/Common/Conf/config.php b/Backend/Common/Conf/config.php index cc42ec6..f73a533 100644 --- a/Backend/Common/Conf/config.php +++ b/Backend/Common/Conf/config.php @@ -1,4 +1,33 @@ '配置值' + + /* 数据库设置 */ + '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' => '', + ) ); \ No newline at end of file