Commit 8cee5593 authored by testshenbd's avatar testshenbd

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev

parents 6d15155b 81943d99
......@@ -10,8 +10,12 @@ define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向
require APPLICATION_PATH . '/scripts/crontab/baseCli.php';
require APPLICATION_PATH . '/scripts/crontab/common.php';
error_reporting(E_ALL ^ E_NOTICE);
$redis = new Redis();
$redis->connect('192.168.1.201', 6379);
// redis 没有设置密码
$redis=new Redis();
$redis->connect($conf['host'], $conf['port']);
if(!empty($conf['password'])){
$redis->auth($conf['password']);
}
$result=$redis->subscribe(array('pushcenter'), 'callback');
function printTest($meg){
echo $meg;
......
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