songxingwei 2 years ago
parent
commit
d221d7901f
2 changed files with 4 additions and 4 deletions
  1. 2 2
      config/database.php
  2. 2 2
      thinkphp/library/think/cache/driver/Redis.php

+ 2 - 2
config/database.php

@@ -19,13 +19,13 @@ return [
     // 数据库类型
     'type'        => 'mysql',
     // 服务器地址
-    'hostname'    => '47.111.246.47',
+    'hostname'    => '8.142.12.79',
     // 数据库名
     'database'    => 'szsjceshi',
     // 用户名
     'username'    => 'szsjceshi',
     // 密码
-    'password'    => 'fwHsJ7cJHdEYMtC5',
+    'password'    => '3NesRpPJLs6tkbHe',
     // 编码
     'charset'     => 'utf8mb4',
     // 端口

+ 2 - 2
thinkphp/library/think/cache/driver/Redis.php

@@ -23,10 +23,10 @@ use think\cache\Driver;
 class Redis extends Driver
 {
     protected $options = [
-        'host'       => '47.111.246.47',
+        'host'       => '8.142.12.79',
         'port'       => 6379,
         'password'   => '',
-        'select'     => 9,
+        'select'     => 0,
         'timeout'    => 0,
         'expire'     => 0,
         'persistent' => false,