配置:
0 => array(
'host' => '127.0.0.1',
'port' => 6378,
'database' => 'mi_72wan',
),
1 => array(
'host' => '127.0.0.1',
'port' => 6379,
'database' => 'mi_72wan',
),
开启redis服务:redis-server 或者 redis-server /etc/redis.conf(后台运行);
要开启对应的配置文件:例如,redis-server /etc/redis/redis6378.conf, ok 搞定!