1 Star 0 Fork 16

殘留の回憶 / HServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Config.php 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
黑小马 提交于 2019-09-23 13:44 . 参数优化
<?php
/**
* Created by PhpStorm.
* User: hxm
* Date: 2019/2/21
* Time: 13:56
*/
namespace HServer\config;
class Config
{
/**
* 配置redis,默认不连接
* @return array
*/
public static function getRedis()
{
$redis = array();
$redis["host"] = "127.0.0.1";
$redis["port"] = 6379;
//无密码留空
$redis["password"] = "123456a.";
//是否开启redis
$redis['flag'] = false;
return $redis;
}
/**
* 配置Mysql,默认不连接
* @return array
*/
public static function getDB()
{
$db = array();
$db["host"] = "127.0.0.1";
$db["user"] = "root";
$db["password"] = "haosql";
$db["db"] = "av";
$db["port"] = 3306;
//是否开启db
$db['flag'] = false;
return $db;
}
}
PHP
1
https://gitee.com/qqlet007/HServer.git
git@gitee.com:qqlet007/HServer.git
qqlet007
HServer
HServer
master

搜索帮助