lin 6 years ago
parent
commit
53bbbcf95c
3 changed files with 21 additions and 2 deletions
  1. 3 2
      api/config/db-local.php
  2. 9 0
      common/config/amqp-local.php
  3. 9 0
      common/config/redis-local.php

+ 3 - 2
api/config/db-local.php

@@ -2,8 +2,9 @@
 
 return [
     'class' => 'yii\db\Connection',
-    'dsn' => 'mysql:host=localhost;dbname=advance',
+    'dsn' => 'mysql:host=localhost;dbname=log_system',
     'username' => 'root',
-    'password' => 'root',
+    'password' => 'my@123456',
     'charset' => 'utf8',
+    'tablePrefix' => 'amqp_'
 ];

+ 9 - 0
common/config/amqp-local.php

@@ -0,0 +1,9 @@
+<?php
+
+return [
+    'class' => 'components\service\Amqp',
+    'host'	=> '192.168.3.10',
+    'port'	=> '5672',
+    'user'	=> 'guest',
+    'pass'	=> 'Guest',
+];

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

@@ -0,0 +1,9 @@
+<?php
+
+return [
+    'class' => 'yii\redis\Connection',
+    'hostname'	=> '192.168.3.10',
+    'port' => 6378,
+    'database' => 0,
+    'password' => 'redis12078',
+];