Browse Source

Merge branch 'redis' of yanglin/logSystem-advance into master

yanglin 6 years ago
parent
commit
cdc8e6afb5
2 changed files with 5 additions and 8 deletions
  1. 5 2
      common/config/main.php
  2. 0 6
      console/config/main.php

+ 5 - 2
common/config/main.php

@@ -13,8 +13,11 @@ return [
         'redis' => [
             'class' => 'yii\redis\Connection',
             'hostname' => 'localhost',
-            'port' => 6379,
-            'database' => 0,
+            'port' => 6378,
+            'database' => 1,
+            'password' => 'airent-redis~123',
+
+
         ],
     ],
 ];

+ 0 - 6
console/config/main.php

@@ -31,12 +31,6 @@ return [
             ],
         ],
         'db' =>   require __DIR__ . '/../../common/config/db.php',
-        'redis' => [
-            'class' => 'yii\redis\Connection',
-            'hostname' => 'localhost',
-            'port' => 6379,
-            'database' => 0,
-        ],
     ],
     'params' => $params,
 ];