Browse Source

redis改配置

lizhen_gitee 4 months ago
parent
commit
246ac1ab14
2 changed files with 30 additions and 30 deletions
  1. 28 28
      addons/faredis/config.php
  2. 2 2
      application/config.php

+ 28 - 28
addons/faredis/config.php

@@ -2,43 +2,43 @@
 
 return [
     [
-        'name'    => 'host',
-        'title'   => '主机',
-        'type'    => 'string',
+        'name' => 'host',
+        'title' => '主机',
+        'type' => 'string',
         'content' => [],
-        'value'   => '127.0.0.1',
-        'rule'    => 'required',
-        'extend'  => '',
-        'tip'     => ''
+        'value' => '60.204.208.65',
+        'rule' => 'required',
+        'extend' => '',
+        'tip' => '',
     ],
     [
-        'name'    => 'port',
-        'title'   => '端口',
-        'type'    => 'string',
+        'name' => 'port',
+        'title' => '端口',
+        'type' => 'string',
         'content' => [],
-        'value'   => '6379',
-        'rule'    => 'required',
-        'extend'  => '',
-        'tip'     => ''
+        'value' => '6379',
+        'rule' => 'required',
+        'extend' => '',
+        'tip' => '',
     ],
     [
-        'name'    => 'password',
-        'title'   => '密码',
-        'type'    => 'string',
+        'name' => 'password',
+        'title' => '密码',
+        'type' => 'string',
         'content' => [],
-        'value'   => '',
-        'rule'    => '',
-        'extend'  => '',
-        'tip'     => ''
+        'value' => 'huxiu001',
+        'rule' => '',
+        'extend' => '',
+        'tip' => '',
     ],
     [
-        'name'    => 'dbnums',
-        'title'   => '库数量',
-        'type'    => 'string',
+        'name' => 'dbnums',
+        'title' => '库数量',
+        'type' => 'string',
         'content' => [],
-        'value'   => '16',
-        'rule'    => '',
-        'extend'  => '',
-        'tip'     => ''
+        'value' => '16',
+        'rule' => '',
+        'extend' => '',
+        'tip' => '',
     ],
 ];

+ 2 - 2
application/config.php

@@ -322,11 +322,11 @@ return [
     //redis配置
     'redis'          => [
         // 主机
-        'host'       => Env::get('redis.REDIS_HOST', '127.0.0.1'),
+        'host'       => Env::get('redis.REDIS_HOST', '60.204.208.65'),
         // 端口
         'port'       => Env::get('redis.REDIS_PORT', 6379),
         // 密码
-        'password'   => Env::get('redis.REDIS_PASSWORD', ''),
+        'password'   => Env::get('redis.REDIS_PASSWORD', 'huxiu001'),
         'select'     => Env::get('redis.REDIS_DB', 15),
         'timeout'    => Env::get('redis.REDIS_TIMEOUT', 0),//
         // 默认缓存时常 0为永久