Commit 56bc964d authored by 吴贤德's avatar 吴贤德

Monitor接口——redis配置统一提到config下

parent d867f486
......@@ -6,6 +6,18 @@ return array(
'SYSTEM_INFO'=>array('name'=>'智慧酒店运营服务平台',
'logo'=>'logo.png',
'favicon'=>'favicon.ico'),
//redis连接配置
'RedisConfig'=>array(
server => array(
'host' => '192.168.200.134',
'port' => 6000,
),
options => array(
'parameters' => array(
'password' => 'atomicytl',
),
)
),
//end
'LOG_RECORD' => false, // 开启日志记录
......
......@@ -14,19 +14,16 @@ class MonitorAction extends Action
public function devices()
{
$this->assign('SYSTEM_INFO',C('SYSTEM_INFO'));
$limitRtimeout=30;
$limitCpu=0.9;
$limitMem=0.9;
$server = array(
'host' => '192.168.200.134',
'port' => 6000,
);
$options = array(
'parameters' => array(
'password' => 'atomicytl',
),
);
$redisConfig=C('RedisConfig');
$server = $redisConfig["server"];
$options = $redisConfig["options"];
$sql = "SELECT id,code,name,ip"
." FROM sh_hotel_device"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment