瀏覽代碼

调整配置参数

王刚 1 年之前
父節點
當前提交
4845097159
共有 2 個文件被更改,包括 6 次插入20 次删除
  1. 3 2
      Gameserver/Amfphp/configs/config_dev.php
  2. 3 18
      Gameserver/Amfphp/configs/config_dev_wg.php

+ 3 - 2
Gameserver/Amfphp/configs/config_dev.php

@@ -39,7 +39,7 @@ class config_dev extends config {
      * nosql
      */
     protected function _InitNosql() {
-        $this->nosql->host = "10.88.0.14";                                       # host/ip
+        $this->nosql->host = "10.88.20.16";                                     # host/ip
         $this->nosql->port = 6379;                                              # 端口
         $this->nosql->pwd = 'wanggang1985';                                     # 密钥
         $this->nosql->db = 2;                                                   # db索引
@@ -49,8 +49,9 @@ class config_dev extends config {
      * MongoDB
      */
     protected function _InitMongoDB() {
-        $this->mongo->db = 'ylsj2019_dev';
+        $this->mongo->db = 'jzhj2023_dev';
         $this->mongo->conn = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@10.88.0.14:23333/?authSource=ylsj2019";
+        $this->mongo->conn = "mongodb://mongouser:wanggang1985@10.88.24.17:27017,10.88.24.5:27017/test?replicaSet=cmgo-bw110ojx_0&authSource=admin";
     }
 }
 

+ 3 - 18
Gameserver/Amfphp/configs/config_dev_wg.php

@@ -30,20 +30,9 @@ class config_dev_wg extends config {
     protected function _InitPaydb() {
         $this->paydb->host = '127.0.0.1';
         $this->paydb->port = '3306';
-        $this->paydb->name = 'ylsj2019_pay';
+        $this->paydb->name = 'jzhj2023_pay';
         $this->paydb->user = 'gwang';
         $this->paydb->password = 'wanggang1985';
-//
-//        $this->paydb->host = '127.0.0.1';
-//        $this->paydb->port = '3306';
-//        $this->paydb->name = 'chongwu';
-//        $this->paydb->user = 'root';
-//        $this->paydb->password = 'root';
-//        $this->paydb->host = '192.168.10.16';
-//        $this->paydb->port = '3306';
-//        $this->paydb->name = 'ylsj2019_pay';
-//        $this->paydb->user = 'gwang';
-//        $this->paydb->password = 'wanggang1985';
     }
 
     /**
@@ -53,18 +42,14 @@ class config_dev_wg extends config {
         $this->nosql->host = "127.0.0.1";                                       # host/ip
         $this->nosql->port = 6379;                                              # 端口
         $this->nosql->pwd = 'wanggang1985';                                     # 密钥
-        $this->nosql->db = 0;                                                   # db索引
-//        $this->nosql->host = "162.168.10.16";                                   # host/ip
-//        $this->nosql->port = 6004;                                              # 端口
-//        $this->nosql->pwd = 'wanggang1985';                                     # 密钥
-//        $this->nosql->db = 0;
+        $this->nosql->db = 1;                                                   # db索引
     }
 
     /**
      * MongoDB
      */
     protected function _InitMongoDB() {
-        $this->mongo->db = "ylsj2019";
+        $this->mongo->db = "jzhj2023";
         $this->mongo->conn = "mongodb://gwang:wanggang1985@localhost:23333/?authSource=admin";
     }
 }