lin 6 years ago
parent
commit
08ec2efac0
2 changed files with 11 additions and 5 deletions
  1. 2 2
      common/config/main.php
  2. 9 3
      common/config/redis-local.php

+ 2 - 2
common/config/main.php

@@ -35,10 +35,10 @@ return [
 
         'redis' => [
             'class' => 'yii\redis\Connection',
-            'hostname' => '127.0.0.1',
+            'hostname'	=> '139.196.43.170',
             'port' => 6378,
             'database' => 0,
-            'password' => 'redis12078',
+            'password' => 'airent-redis~123',
         ],
 
 		'i18n' => [

+ 9 - 3
common/config/redis-local.php

@@ -2,8 +2,14 @@
 
 return [
     'class' => 'yii\redis\Connection',
-    'hostname'	=> '192.168.3.10',
-    'port' => 6379,
+
+//    'hostname'	=> '192.168.3.10',
+//    'port' => 6379,
+//    'database' => 0,
+//    'password' => 'redis12078',
+
+    'hostname'	=> '139.196.43.170',
+    'port' => 6378,
     'database' => 0,
-    'password' => 'redis12078',
+    'password' => 'airent-redis~123',
 ];