PDA

View Full Version : Share bài HD TLBB online



vuthanhlam
26-05-10, 06:56 PM
*** Bài này mình dịch từ bài hướng dẫn Thông tin về Server TLBB Soho ***

Tài liệu hướng dẫn cài đặt Thiên Long Bát Bộ
Dành cho Server game

--- Phần nói về yêu cầu cấu hình Server của bên Đài Loan-----------
1. Cần ít nhất 5 máy chủ Linux và một Đài Loan Windows Server 2003 các máy chủ để đạt được các yêu cầu về môi trường
Cấu hình để dual-core CPU PD hơn 2 2,8 G bộ nhớ (tối thiểu).
2. Server cần phải cài đặt hai thẻ, một thẻ truy cập, mạng. Và một thẻ trong phạm vi kết nối mạng. Trong thời hạn mạng đã nhận được theo cùng một switch.
Đối với các yêu cầu của ổ cứng. Nếu có nhiều hơn 1.000 người chơi trên dòng. SCSI triệu đề nghị để thay thế cho ổ cứng. Để ngăn ngừa mất dữ liệu gây ra cho qua lúc khối.
Các máy chủ và cấu hình

1. Máy chủ Linux cài đặt Redhat5 X86. Cài đặt tất cả các gói liên quan đến việc phát triển hỗ trợ ngôn ngữ Trung Quốc. Windows 2003 Server Enterprise Edition có thể được cài đặt. Không có gì yêu cầu đặc biệt.
2.Linux máy chủ được đặt tên tlbb-GameServer tlbb-gameserver1 tlbb-gameserver2 tlbb-worldserver tlbb-billserver trong mạng IP đã được thiết lập để 172.16.1.2 172.16.1.3 172.16.1.4 172.16.1.5 172.16.1.6 và cổng SSH để theo dõi Trên card mạng. Tlbb-GameServer ---- worldserver cần phải cài đặt các phần mềm như sau:


mysql-connector-odbc-3.51.12-1
mysqlclient10-3.23.58-4
MySQL-client-chuẩn-5.0.27
UnixOdbc

Tlbb-billserver cần phải cài đặt các phần mềm như sau:

Oracle10g-Client
MySQL-server-chuẩn-5.0.27

Windows server cài đặt Mssql2000 Oracle10g mysql-connector-odbc-3,51
Trong mạng IP được thiết lập để 172.16.1.1
----------------------------------------------------------------

3 dịch vụ phụ của việc xây dựng và cấu hình

1. Tlbbfiles.tar.gz sẽ được chuyển tải đến 172.16.1.2 172.16.1.6 ~ Billing.tar.gz tương ứng đạt 172.16.1.6
2. Tl_gameuser.dmp tlbb.dmp đầu tiên và trở lại cơ sở dữ liệu oracle. Giảm trong cơ sở dữ liệu trước đây. Oracle tạo ra trong ba tài khoản đầu tiên.
- Tạo người sử dụng
tạo tlbb người sử dụng xác định bởi JC4KQO1EJP;
tạo tl_gameuser người sử dụng xác định bởi S0DHRFZVZ5;
tạo tlbb_read người sử dụng xác định bởi JC4KQO1EJP;
- Cài đặt và vai trò của hệ thống cho phép truy cập
- Grant / Thu hồi vai trò đặc quyền
cấp kết nối với TLBB;
cấp nguồn lực để TLBB;
- Grant / Thu hồi hệ thống đặc quyền
cấp thay đổi phiên để TLBB;
cấp tạo cluster để TLBB;
cấp tạo liên kết cơ sở dữ liệu để TLBB;
cấp tạo ra chuỗi để TLBB;
cấp để tạo ra phiên TLBB;
cấp tạo ra từ đồng nghĩa để TLBB;
cấp tạo ra các bảng để TLBB;
cấp nhằm tạo TLBB;
-----------------------------------------------------

------------------Phần này có thể là phần khi game được khởi động-------------
-------------- Giúp hiểu được lí do đăng nhập được hay không -----------------------

Các khác hai là cùng một tài khoản thành lập

<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>


Sau khi nhập khẩu được hoàn tất với pl / sql để thúc đẩy người sử dụng hệ thống hạ cánh. Tl_gameuser.userbasic sẽ được cấp tlbb người dùng truy cập.

Tlbb người sử dụng và thiết lập các mục tiêu của thẩm quyền.

Thủ tục và người sử dụng tlbb với một X màu đỏ theo quá trình biên soạn các cửa hàng.

Sau khi Nonghao cơ sở dữ liệu tài khoản. Trò chơi bắt đầu nhập khẩu cơ sở dữ liệu và cơ sở dữ liệu thống kê. SQLyog để kết nối với gốc tlbbdb thành lập. DBInit_0_9_0020_mysql.sql nhập khẩu này sẽ được thư viện. Và sau đó thiết lập một tài khoản thuộc sở hữu của chính quyền. Tlbbdb_stat.sql hoạt động và Giống như ở trên.

------------------------------------------------------------------------------------
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
--------------------------------------------------------------------

------- Phần này là phần chỉnh config trong nhiều tập tin --------------
------ Thư mục Server/Billing/ect-------------
db_hash.conf
# Hash:
HASHING_NUM = 1

# 0 casual danh sách:
MAXDBCONNS0 = 5
DBUSER_DB0 = tlbb
DBPASS_DB0 = JC4KQO1EJP
DBTNS_DB0 = ora10g; ở đây cho oracle của TNSname, trong Xem tài liệu tnsnames.ora.
gbs.conf tài liệu
MAXDBCONNS_BILL = 20
DBUSER_GAMEBILL = tlbb
DBPASS_GAMEBILL = JC4KQO1EJP
DBTNS_GAMEBILL = ora10g
#
MAXDBCONNS_AUTH = 20
DBUSER_GAMEAUTH = tl_gameuser # cho userbasic
DBPASS_GAMEAUTH = S0DHRFZVZ5
DBTNS_GAMEAUTH = ora10g

host.lst
x.x.x.x - dịch vụ mạng IP thế giới,
172.16.1.5 - thế giới của dịch vụ trong mạng IP

4. Cài đặt oracle oracle tnsnames.ora khách hàng sẽ được ora10g máy chủ của dịch vụ cho 172.16.1.1 thay đổi như sau

ORA10G =
(MÔ TẢ =
(ADDRESS = (giao thức = TCP) (HOST = 172.16.1.1) (PORT = 1521))
(CONNECT_DATA =
(SERVER = RIÊNG)
(SERVICE_NAME = ora10g)
)
)
5. Activated billing services. / Tlbb start if there is ************** draw information end ************ on the words that launched successful, in Figure 4

-------Phần chỉnh trong phần Config -------------
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


; 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


[B]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.

thanhhiep
26-05-10, 07:26 PM
xem xong mà hết mà hết biết cái gì luôn , thật là ............................:-o

oixinhqua
27-05-10, 01:06 AM
google translate mà kêu "Bài này mình dịch" sợ thật. Đọc vài dòng đầu tiên đã biết ngay không phải tự dịch. Lủng củng quá trời luôn.

huuduyen_05
27-05-10, 06:14 AM
Bài này có post từ mấy năm trước rồi :|

=> topic closed!