Game


You are not connected. Please login or register

[Hướng dẫn] tạo nhiều server trên một máy ảo

Go down  Message [Page 1 of 1]

Fenix

Fenix
Game Master
Game Master
Chưa thấy có ai hướng dẫn cái này, hôm nay rảnh nên post lên cho ai cần.
Hướng dẫn của bên ragezone ( để nguyên tiếng Anh )


Copy db & Game foldernow rename it db->db1 & game->game1
--------------
now rename all files sql for example game.sql to game1.sql
now all database attach in navicate with lastword "1" (Without quaot)
Note :- dont attach db_account1 in navicate
--------------
now go in "login" folder
login_user.ini


[db]
BindIP = ""
BindPort = ""
ConnectIp = "127.0.0.1"
ConnectPort = "9006"


now u need to add new lines after this


[db1]
BindIP = ""
BindPort = ""
ConnectIp = "127.0.0.1"
ConnectPort = "9007"


save & close
---------------------


now go in "game1" folder
server_user.ini


[client]
Capability = "2000"
UseGate = "false"
ListenIp = "192.168.2.4"
ListenPortal = "192.168.2.4"
ListenPort = "8886" <-- put here 8887 port
[game_db]
BindIP = ""
BindPort = ""
ConnectIp = "127.0.0.1"
ConnectPort = "9006" <-- put here 9007 port
[log_db]
BindIP = ""
BindPort = ""
ConnectIp = "127.0.0.1"
ConnectPort = "9006" <---- put here 9007 port


save & close
-------------------------------


now go in "db1" folder
db_server_usr.ini


[dbserver]
ListenIp = "localhost"
ListenPort = "9006" <--- put here 9007 port
[db_login]
Server = "localhost"
Port = 3306
Database = "db_account" 
UserName = "root"
Password = "22021982"
[db_game]
Server = "localhost"
Port = 3306
Database = "db_game" <--- put here db_game1
UserName = "root"
Password = "22021982"
[db_log]
Server = "localhost"
Port = 3306
Database = "db_log" <--- put here db_log1
UserName = "root"
Password = "22021982"


Note:- Dont change db_account


save & close
--------------------------------


now run 
db --->./db_server
db1 --->./db_server
login --->./login_server
game --->./game_server
game1 --->./game_server
-------------------------------------
now ur private server have 2 servers



CÒn đây là file server + file sql mình chỉnh rồi cho mọi người tham khảo
[You must be registered and logged in to see this link.]

client thi chẳng phải chỉnh sửa gì cả.

http://www.devgame.ga

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum