cabalviet
05-07-08, 08:34 AM
Tianlongbabu game set up documentation
A server hardware environment
1. Need at least 5 linux server and a Taiwan Windows Server 2003 servers to achieve the environmental requirements
Configured to dual-core CPU PD 2.8 more than 2 G memory (minimum).
2. Server need to install two card, a card access, network. And a card within the network connectivity. Within the network have received under the same switch.
With regard to the requirements of the hard drive. If more than 1,000 players on the line. SCSI million proposal to replace the hard drive. To prevent data loss caused to cross at the block.
The server and configuration
1. Linux server installation Redhat5 X86. Install all packages associated with the development of Chinese language support. Windows 2003 Server Enterprise Edition can be installed. Nothing special requirements.
2.Linux servers were named tlbb-gameserver tlbb-gameserver1 tlbb-gameserver2 tlbb-worldserver tlbb-billserver within the IP network were set to 172.16.1.2 172.16.1.3 172.16.1.4 172.16.1.5 172.16.1.6 and SSH port to monitor On the network card. Tlbb-gameserver ---- worldserver need to install the software are as follows:
mysql-connector-odbc-3.51.12-1
mysqlclient10-3.23.58-4
MySQL-client-standard-5.0.27
UnixOdbc
Tlbb-billserver need to install the software are as follows:
Oracle10g-Client
MySQL-server-standard-5.0.27
Windows server installation Mssql2000 Oracle10g mysql-connector-odbc-3.51
Within the IP network is set to 172.16.1.1
3 services side of the building and configuration
1. Tlbbfiles.tar.gz will be conveyed to the respective 172.16.1.2 ~ 172.16.1.6 Billing.tar.gz reached 172.16.1.6
2. Tl_gameuser.dmp first tlbb.dmp and revert to oracle database. Reduction in the database before. Oracle created in the first three accounts.
-- Create user
create user tlbb IDENTIFIED BY JC4KQO1EJP;
create user tl_gameuser IDENTIFIED BY S0DHRFZVZ5;
create user tlbb_read IDENTIFIED BY JC4KQO1EJP;
-- Settings and roles that allow access system
-- Grant / Revoke role privileges
grant connect to TLBB;
grant resource to TLBB;
-- Grant / Revoke system privileges
grant alter session to TLBB;
grant create cluster to TLBB;
grant create database link to TLBB;
grant create sequence to TLBB;
grant create session to TLBB;
grant create synonym to TLBB;
grant create table to TLBB;
grant create view to TLBB;
The other two are the same account set up
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
After the import is complete with pl / sql to boost landing system users. Tl_gameuser.userbasic will be granted tlbb users visit. Figure 1
Tlbb users and set the target of competence. Figure 2
Procedures and tlbb users with a red X under the process of compiling the store. Figure 3
After the account database Nonghao. Games begin importing the database and statistical databases. SQLyog to root connection with the establishment tlbbdb. DBInit_0_9_0020_mysql.sql import this library will be. And then set up an account owned by the authority. Tlbbdb_stat.sql operation and Like the above.
-- Create an account tlbb tlbbtools
use mysql;
insert into mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Create_user_priv, ssl_type, ssl_cipher, x509_issuer, x509_subject, max_questions, max_updates, max_connections, max_user_connections) value ('172 .16 .%.%', 'tlbb', '* C6F4E3C4123F5707129F96C63E488D268C89C1CA', ' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ' , 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', ' Y','','','','', 0,0,0,0);
insert into mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Create_user_priv, ssl_type, ssl_cipher, x509_issuer, x509_subject, max_questions, max_updates, max_connections, max_user_connections) value ('172 .16 .%.%', 'tlbbtools',' * 70851F21ECE641B52D5B9946950566EB08C935DA ',' Y ',' Y ',' Y ',' Y ',' N ',' Y ',' N ',' N ',' N ',' N ',' N ',' Y ',' Y ' , 'N', 'N', 'N', 'Y', 'N', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', ' N','','','','', 0,0,0,0);
-- Set up access
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb', 'tlbb', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb', 'tlbbtools',' Y ',' Y ',' Y ',' Y ',' N ',' Y ',' N ',' Y ',' Y ', 'N', 'Y', 'N', 'Y', 'Y', 'N', 'N', 'Y');
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb_stat', 'tlbb', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N');
3. Tlbb-billserver / home directory of the establishment of tlbb folder. Billing.tar.gz and extract this document.
4. Change / home / tlbb / etc under gbs.conf db_hash.conf host.lst these three documents in the IP, and oracle connection information. Need to change the items are as follows
db_hash.conf documents
# Hash:
HASHING_NUM = 1
# 0 casual list:
MAXDBCONNS0 = 5
DBUSER_DB0 = tlbb
DBPASS_DB0 = JC4KQO1EJP
DBTNS_DB0 = ora10g; here for the oracle of TNSname, in tnsnames.Ora document View.
gbs.conf documents
MAXDBCONNS_BILL = 20
DBUSER_GAMEBILL = tlbb
DBPASS_GAMEBILL = JC4KQO1EJP
DBTNS_GAMEBILL = ora10g
#
MAXDBCONNS_AUTH = 20
DBUSER_GAMEAUTH = tl_gameuser # for userbasic
DBPASS_GAMEAUTH = S0DHRFZVZ5
DBTNS_GAMEAUTH = ora10g
host.lst documents
x.x.x.x - world IP network services,
172.16.1.5 - world of services within the IP network
4. Settings oracle client tnsnames.ora oracle will be ora10g host of services to 172.16.1.1 changes are as follows
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.1) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
5. Activated billing services. / Tlbb start if there is ************** draw information end ************ on the words that launched successful, in Figure 4
6. Server configuration world. Tlbbfiles.tar.gz to be / home changes / home / tlbb / Server / Config under the ServerInfo.ini ShareMemInfo.ini LoginInfo.ini this three documents.
ServerInfo.ini
[System]
Desc0 = function: server-side configuration of the relevant procedures;
Desc1 = IP0, Port0 refers to the network address and port;
Desc2 = IP1, Port1 refers to the network address and port;
Desc3 = Type: Game = 0; Login = 1;
; Current server ID, (0,1,3,0 According to the server)
CurrentServerID = 0
; Current game world the number of server-side program
ServerNumber = 4
[Mother]
IP = x.x.x.x; set up to the windows server, IP network
Port = 1014
[World]
IP = x.x.x.x; set to the outside world IP network
Port = 777
[Billing]
; Configuration can try to connect the number of billing
Number = 1
; The default connection billing of IP
IP0 = x.x.x.x; set to billing services, IP network
; The default connection billing the ports
Port0 = 15680
IP1 = 0.0.0.0
Port1 = 10101
IP2 = 0.0.0.0
Port2 = 10101
IP3 = 0.0.0.0
Port3 = 10101
IP4 = 0.0.0.0
Port4 = 10101
[Proxy]
; Responsible for Netcom subscribers to its telecommunications network within the proxy server IP (exposed to the game server's IP)
Proxy0ForCncUser = x.x.x.x
; Proxy1ForCncUser = 0.0.0.0
; Responsible for telecommunications users access Netcom's proxy server, network IP (exposed to the game server's IP)
Proxy0ForCtcUser = 0.0.0.0
; Proxy1ForCtcUser = 0.0.0.0
; Education network from the proxy server from the article to a telecommunications link export agent
Proxy0ForEduUser = x.x.x.x
; Proxy1ForEduUser = 0.0.0.0
[Server0]
; Game server side,
ServerID = 0
; This game server side of the server,
MachineID = 0
; Outside the network IP addresses, and with client
IP0 = x.x.x.x; tlbb-gameserver the IP network,
; Outside the network port
Port0 = 3731
; Within the network IP addresses, use and inter-connected server side
IP1 = 172.16.1.2
; Within the network port
Port1 = 8880
; Types of server-side procedures, such as: GameServer, LoginServer
Type = 0
; Netcom's proxy server IP, the agent filled out OUT-IP connection is the agent of IP audience
IP (CNC) = x.x.x.x
; Netcom's proxy server port
Port (CNC) = 1000
; Telecom's proxy server IP
IP (CTC) = 0.0.0.0
; Telecom's proxy server port
Port (CTC) = 0
Education Network proxy server IP
IP (EDU) = x.x.x.x
Education Network proxy server port
Port (EDU) = 1000
; ShareMemory shared Key
HumanSMKey = 1001
; Stores sharing Key players
PlayShopSMKey = 4001
; Item serial number
ItemSerialKey = 7001
CommisionShopKey = 6001
EnableShareMem = 1
[Server1]
ServerID = 1
MachineID = 1
IP0 = x.x.x.x; tlbb-gameserver1 the IP network,
Port0 = 3732
IP1 = 172.16.1.3
Port1 = 8881
Type = 0
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1002
PlayShopSMKey = 4002
ItemSerialKey = 7002
CommisionShopKey = 6002
EnableShareMem = 1
[Server2]
ServerID = 2
MachineID = 3
IP0 = xxxx; Login services outside the network IP. And the world the same IP
Port0 = 7377
IP1 = x.x.x.x; Ibid.
Port1 = 8882
Type = 1
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1003
PlayShopSMKey = 4003
ItemSerialKey = 7003
CommisionShopKey = 6003
EnableShareMem = 0
[Server3]
ServerID = 3
MachineID = 2
IP0 = x.x.x.x; tlbb-gameserver2 the IP network,
Port0 = 3734
IP1 = 172.16.1.4
Port1 = 8883
Type = 0
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1003
PlayShopSMKey = 4003
ItemSerialKey = 7003
CommisionShopKey = 6003
EnableShareMem = 1
ShareMemInfo.ini
[System]
DBIP = 172.16.1.6; database ip
DBPort = 3306; database port
DBName = tlbbdb; database name
DBUser = tlbb; user name
DBPassword = t! Lbb; password
SMUInterval = 1200000; world data archiving time (ms)
DATAInterval = 900000; Human data archiving time (ms)
CryptPwd = 0; password encryption, is an encryption, is not encrypted 0
[ShareMem]
KeyCount = 5; ShareObj number
Key0 = 2001; a key section of the code
Type0 = 2; HumanSMU type 1
Key1 = 3001
Type1 = 3
Key2 = 8001
Type2 = 8
Key3 = 9001
Type3 = 9
Key4 = 5001
Type4 = 5
LoginInfo.ini
[System]
LoginID = 2; current Login server side of the LoginID
DBIP = 172.16.1.6
DBPort = 3306
DBName = tlbbdb
DBUser = tlbb
DBPassword = t! Lbb
ClientVersion = 1005
DBConnectCount = 10
TurnPlayerCount = 100
CryptPwd = 0; password plus »
EnableProxyConnect = 0
7. Configuration odbc.ini and odbcinst.ini, here is very important. Please follow the allocation of reference are as follows
odbc.ini
[tlbbdb]
Driver = / usr/lib/libmyodbc3.so
Description = MyODBC 3.51 Driver DSN
SERVER = 172.16.1.6
PORT = 3306
USER = tlbb
Password = t! Lbb
Database = tlbbdb
OPTION = 3
SOCKET =
odbcinst.ini
# Example driver definitinions
#
#
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = / usr / lib / libodbcpsql.so
Setup = / usr / lib / libodbcpsqlS.so
FileUsage = 1
# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]
Description = ODBC for MySQL
Driver = / usr/lib/libmyodbc3.so
Setup = / usr / lib / libodbcmyS.so
FileUsage = 1
After the preservation OK. Settings $ LD_LIBRARY_PATH.
export LD_LIBRARY_PATH = / home / tlbb / Server: $ LD_LIBRARY_PATH
And edit / etc / profile into the preservation of the above.
8. Testing services start normal, cd / home / tlbb / Server. / Shm start if the mistakes of the service will be automatically suspended. Log, please see the log files to debug.
9. Shm start no problem and it will run.sh stop.sh reached the root folder. To start. Activated upon completion. Ps-ex to see whether there is a process. Figure 5
In order to determine the successful launch services, telnet 172.16.1.5 777 7377 even if the OK on that. This time should check whether the billing services to receive Login service response. Server to the bill. / Tlbb list
If you do not show the Login IP services and the number of services that World host.lst configuration problems. Please check log folder gbs-xx.log debugging.
10. World server configuration is next after the completion of Game server configuration. Configuration is basically configured with almost the World. ServerInfo.ini ShareMemInfo.ini need to change the two documents. Server directly to the World copies of two documents from coverage. Then a few of the changes are as follows
ServerInfo.ini
This document do not have to change. If it is tlbb-gameserver1 on the need to change.
; Current server ID, (0,1,3,0 According to the server)
CurrentServerID = 0; unchanged here. If it is tlbb-gameserver1, on the need to set to 1, according to ServerID = X may be.
ShareMemInfo.ini
[ShareMem]
KeyCount = 4; ShareObj number
Key0 = 1001; a key section of the code
Type0 = 1; HumanSMU type 1
Key1 = 4001
Type1 = 4
Key2 = 7001
Type2 = 7
Key3 = 6001
Type3 = 6
This is in accordance with ServerInfo.ini settings.
odbc.ini and odbcinst.ini such as the above-mentioned settings, not repeat them.
First start. / Shm start to see if normal.'s Remarks on the normal. / Shm stop and run.sh and stop.sh reached ROOT folder running. / Run.sh unless they re-ps-ex process, in Figure 8
Telnet port services to the game. Can even prove that nothing on the issue. Another two servers set up and this almost. The only difference is that ServerInfo.ini ShareMemInfo.ini document settings. Above have already said that the method set up. Will not repeat .
11. WINDOWS on the Sohu in this folder to extract the C-. Restore the database. GTOOL to those under the folder configuration information. Were initiated it.
A server hardware environment
1. Need at least 5 linux server and a Taiwan Windows Server 2003 servers to achieve the environmental requirements
Configured to dual-core CPU PD 2.8 more than 2 G memory (minimum).
2. Server need to install two card, a card access, network. And a card within the network connectivity. Within the network have received under the same switch.
With regard to the requirements of the hard drive. If more than 1,000 players on the line. SCSI million proposal to replace the hard drive. To prevent data loss caused to cross at the block.
The server and configuration
1. Linux server installation Redhat5 X86. Install all packages associated with the development of Chinese language support. Windows 2003 Server Enterprise Edition can be installed. Nothing special requirements.
2.Linux servers were named tlbb-gameserver tlbb-gameserver1 tlbb-gameserver2 tlbb-worldserver tlbb-billserver within the IP network were set to 172.16.1.2 172.16.1.3 172.16.1.4 172.16.1.5 172.16.1.6 and SSH port to monitor On the network card. Tlbb-gameserver ---- worldserver need to install the software are as follows:
mysql-connector-odbc-3.51.12-1
mysqlclient10-3.23.58-4
MySQL-client-standard-5.0.27
UnixOdbc
Tlbb-billserver need to install the software are as follows:
Oracle10g-Client
MySQL-server-standard-5.0.27
Windows server installation Mssql2000 Oracle10g mysql-connector-odbc-3.51
Within the IP network is set to 172.16.1.1
3 services side of the building and configuration
1. Tlbbfiles.tar.gz will be conveyed to the respective 172.16.1.2 ~ 172.16.1.6 Billing.tar.gz reached 172.16.1.6
2. Tl_gameuser.dmp first tlbb.dmp and revert to oracle database. Reduction in the database before. Oracle created in the first three accounts.
-- Create user
create user tlbb IDENTIFIED BY JC4KQO1EJP;
create user tl_gameuser IDENTIFIED BY S0DHRFZVZ5;
create user tlbb_read IDENTIFIED BY JC4KQO1EJP;
-- Settings and roles that allow access system
-- Grant / Revoke role privileges
grant connect to TLBB;
grant resource to TLBB;
-- Grant / Revoke system privileges
grant alter session to TLBB;
grant create cluster to TLBB;
grant create database link to TLBB;
grant create sequence to TLBB;
grant create session to TLBB;
grant create synonym to TLBB;
grant create table to TLBB;
grant create view to TLBB;
The other two are the same account set up
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
After the import is complete with pl / sql to boost landing system users. Tl_gameuser.userbasic will be granted tlbb users visit. Figure 1
Tlbb users and set the target of competence. Figure 2
Procedures and tlbb users with a red X under the process of compiling the store. Figure 3
After the account database Nonghao. Games begin importing the database and statistical databases. SQLyog to root connection with the establishment tlbbdb. DBInit_0_9_0020_mysql.sql import this library will be. And then set up an account owned by the authority. Tlbbdb_stat.sql operation and Like the above.
-- Create an account tlbb tlbbtools
use mysql;
insert into mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Create_user_priv, ssl_type, ssl_cipher, x509_issuer, x509_subject, max_questions, max_updates, max_connections, max_user_connections) value ('172 .16 .%.%', 'tlbb', '* C6F4E3C4123F5707129F96C63E488D268C89C1CA', ' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ',' Y ' , 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', ' Y','','','','', 0,0,0,0);
insert into mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Create_user_priv, ssl_type, ssl_cipher, x509_issuer, x509_subject, max_questions, max_updates, max_connections, max_user_connections) value ('172 .16 .%.%', 'tlbbtools',' * 70851F21ECE641B52D5B9946950566EB08C935DA ',' Y ',' Y ',' Y ',' Y ',' N ',' Y ',' N ',' N ',' N ',' N ',' N ',' Y ',' Y ' , 'N', 'N', 'N', 'Y', 'N', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', ' N','','','','', 0,0,0,0);
-- Set up access
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb', 'tlbb', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb', 'tlbbtools',' Y ',' Y ',' Y ',' Y ',' N ',' Y ',' N ',' Y ',' Y ', 'N', 'Y', 'N', 'Y', 'Y', 'N', 'N', 'Y');
insert into mysql.db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv) value ('172 .16 .%.%', 'Tlbbdb_stat', 'tlbb', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N');
3. Tlbb-billserver / home directory of the establishment of tlbb folder. Billing.tar.gz and extract this document.
4. Change / home / tlbb / etc under gbs.conf db_hash.conf host.lst these three documents in the IP, and oracle connection information. Need to change the items are as follows
db_hash.conf documents
# Hash:
HASHING_NUM = 1
# 0 casual list:
MAXDBCONNS0 = 5
DBUSER_DB0 = tlbb
DBPASS_DB0 = JC4KQO1EJP
DBTNS_DB0 = ora10g; here for the oracle of TNSname, in tnsnames.Ora document View.
gbs.conf documents
MAXDBCONNS_BILL = 20
DBUSER_GAMEBILL = tlbb
DBPASS_GAMEBILL = JC4KQO1EJP
DBTNS_GAMEBILL = ora10g
#
MAXDBCONNS_AUTH = 20
DBUSER_GAMEAUTH = tl_gameuser # for userbasic
DBPASS_GAMEAUTH = S0DHRFZVZ5
DBTNS_GAMEAUTH = ora10g
host.lst documents
x.x.x.x - world IP network services,
172.16.1.5 - world of services within the IP network
4. Settings oracle client tnsnames.ora oracle will be ora10g host of services to 172.16.1.1 changes are as follows
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.1) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
5. Activated billing services. / Tlbb start if there is ************** draw information end ************ on the words that launched successful, in Figure 4
6. Server configuration world. Tlbbfiles.tar.gz to be / home changes / home / tlbb / Server / Config under the ServerInfo.ini ShareMemInfo.ini LoginInfo.ini this three documents.
ServerInfo.ini
[System]
Desc0 = function: server-side configuration of the relevant procedures;
Desc1 = IP0, Port0 refers to the network address and port;
Desc2 = IP1, Port1 refers to the network address and port;
Desc3 = Type: Game = 0; Login = 1;
; Current server ID, (0,1,3,0 According to the server)
CurrentServerID = 0
; Current game world the number of server-side program
ServerNumber = 4
[Mother]
IP = x.x.x.x; set up to the windows server, IP network
Port = 1014
[World]
IP = x.x.x.x; set to the outside world IP network
Port = 777
[Billing]
; Configuration can try to connect the number of billing
Number = 1
; The default connection billing of IP
IP0 = x.x.x.x; set to billing services, IP network
; The default connection billing the ports
Port0 = 15680
IP1 = 0.0.0.0
Port1 = 10101
IP2 = 0.0.0.0
Port2 = 10101
IP3 = 0.0.0.0
Port3 = 10101
IP4 = 0.0.0.0
Port4 = 10101
[Proxy]
; Responsible for Netcom subscribers to its telecommunications network within the proxy server IP (exposed to the game server's IP)
Proxy0ForCncUser = x.x.x.x
; Proxy1ForCncUser = 0.0.0.0
; Responsible for telecommunications users access Netcom's proxy server, network IP (exposed to the game server's IP)
Proxy0ForCtcUser = 0.0.0.0
; Proxy1ForCtcUser = 0.0.0.0
; Education network from the proxy server from the article to a telecommunications link export agent
Proxy0ForEduUser = x.x.x.x
; Proxy1ForEduUser = 0.0.0.0
[Server0]
; Game server side,
ServerID = 0
; This game server side of the server,
MachineID = 0
; Outside the network IP addresses, and with client
IP0 = x.x.x.x; tlbb-gameserver the IP network,
; Outside the network port
Port0 = 3731
; Within the network IP addresses, use and inter-connected server side
IP1 = 172.16.1.2
; Within the network port
Port1 = 8880
; Types of server-side procedures, such as: GameServer, LoginServer
Type = 0
; Netcom's proxy server IP, the agent filled out OUT-IP connection is the agent of IP audience
IP (CNC) = x.x.x.x
; Netcom's proxy server port
Port (CNC) = 1000
; Telecom's proxy server IP
IP (CTC) = 0.0.0.0
; Telecom's proxy server port
Port (CTC) = 0
Education Network proxy server IP
IP (EDU) = x.x.x.x
Education Network proxy server port
Port (EDU) = 1000
; ShareMemory shared Key
HumanSMKey = 1001
; Stores sharing Key players
PlayShopSMKey = 4001
; Item serial number
ItemSerialKey = 7001
CommisionShopKey = 6001
EnableShareMem = 1
[Server1]
ServerID = 1
MachineID = 1
IP0 = x.x.x.x; tlbb-gameserver1 the IP network,
Port0 = 3732
IP1 = 172.16.1.3
Port1 = 8881
Type = 0
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1002
PlayShopSMKey = 4002
ItemSerialKey = 7002
CommisionShopKey = 6002
EnableShareMem = 1
[Server2]
ServerID = 2
MachineID = 3
IP0 = xxxx; Login services outside the network IP. And the world the same IP
Port0 = 7377
IP1 = x.x.x.x; Ibid.
Port1 = 8882
Type = 1
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1003
PlayShopSMKey = 4003
ItemSerialKey = 7003
CommisionShopKey = 6003
EnableShareMem = 0
[Server3]
ServerID = 3
MachineID = 2
IP0 = x.x.x.x; tlbb-gameserver2 the IP network,
Port0 = 3734
IP1 = 172.16.1.4
Port1 = 8883
Type = 0
IP (CNC) = x.x.x.x
Port (CNC) = 1000
IP (CTC) = 0.0.0.0
Port (CTC) = 0
IP (EDU) = x.x.x.x
Port (EDU) = 1000
HumanSMKey = 1003
PlayShopSMKey = 4003
ItemSerialKey = 7003
CommisionShopKey = 6003
EnableShareMem = 1
ShareMemInfo.ini
[System]
DBIP = 172.16.1.6; database ip
DBPort = 3306; database port
DBName = tlbbdb; database name
DBUser = tlbb; user name
DBPassword = t! Lbb; password
SMUInterval = 1200000; world data archiving time (ms)
DATAInterval = 900000; Human data archiving time (ms)
CryptPwd = 0; password encryption, is an encryption, is not encrypted 0
[ShareMem]
KeyCount = 5; ShareObj number
Key0 = 2001; a key section of the code
Type0 = 2; HumanSMU type 1
Key1 = 3001
Type1 = 3
Key2 = 8001
Type2 = 8
Key3 = 9001
Type3 = 9
Key4 = 5001
Type4 = 5
LoginInfo.ini
[System]
LoginID = 2; current Login server side of the LoginID
DBIP = 172.16.1.6
DBPort = 3306
DBName = tlbbdb
DBUser = tlbb
DBPassword = t! Lbb
ClientVersion = 1005
DBConnectCount = 10
TurnPlayerCount = 100
CryptPwd = 0; password plus »
EnableProxyConnect = 0
7. Configuration odbc.ini and odbcinst.ini, here is very important. Please follow the allocation of reference are as follows
odbc.ini
[tlbbdb]
Driver = / usr/lib/libmyodbc3.so
Description = MyODBC 3.51 Driver DSN
SERVER = 172.16.1.6
PORT = 3306
USER = tlbb
Password = t! Lbb
Database = tlbbdb
OPTION = 3
SOCKET =
odbcinst.ini
# Example driver definitinions
#
#
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = / usr / lib / libodbcpsql.so
Setup = / usr / lib / libodbcpsqlS.so
FileUsage = 1
# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]
Description = ODBC for MySQL
Driver = / usr/lib/libmyodbc3.so
Setup = / usr / lib / libodbcmyS.so
FileUsage = 1
After the preservation OK. Settings $ LD_LIBRARY_PATH.
export LD_LIBRARY_PATH = / home / tlbb / Server: $ LD_LIBRARY_PATH
And edit / etc / profile into the preservation of the above.
8. Testing services start normal, cd / home / tlbb / Server. / Shm start if the mistakes of the service will be automatically suspended. Log, please see the log files to debug.
9. Shm start no problem and it will run.sh stop.sh reached the root folder. To start. Activated upon completion. Ps-ex to see whether there is a process. Figure 5
In order to determine the successful launch services, telnet 172.16.1.5 777 7377 even if the OK on that. This time should check whether the billing services to receive Login service response. Server to the bill. / Tlbb list
If you do not show the Login IP services and the number of services that World host.lst configuration problems. Please check log folder gbs-xx.log debugging.
10. World server configuration is next after the completion of Game server configuration. Configuration is basically configured with almost the World. ServerInfo.ini ShareMemInfo.ini need to change the two documents. Server directly to the World copies of two documents from coverage. Then a few of the changes are as follows
ServerInfo.ini
This document do not have to change. If it is tlbb-gameserver1 on the need to change.
; Current server ID, (0,1,3,0 According to the server)
CurrentServerID = 0; unchanged here. If it is tlbb-gameserver1, on the need to set to 1, according to ServerID = X may be.
ShareMemInfo.ini
[ShareMem]
KeyCount = 4; ShareObj number
Key0 = 1001; a key section of the code
Type0 = 1; HumanSMU type 1
Key1 = 4001
Type1 = 4
Key2 = 7001
Type2 = 7
Key3 = 6001
Type3 = 6
This is in accordance with ServerInfo.ini settings.
odbc.ini and odbcinst.ini such as the above-mentioned settings, not repeat them.
First start. / Shm start to see if normal.'s Remarks on the normal. / Shm stop and run.sh and stop.sh reached ROOT folder running. / Run.sh unless they re-ps-ex process, in Figure 8
Telnet port services to the game. Can even prove that nothing on the issue. Another two servers set up and this almost. The only difference is that ServerInfo.ini ShareMemInfo.ini document settings. Above have already said that the method set up. Will not repeat .
11. WINDOWS on the Sohu in this folder to extract the C-. Restore the database. GTOOL to those under the folder configuration information. Were initiated it.