This is translate From [Only registered and activated users can see links. ] someone thread :P (Not complete trasnalte -_- google translator stink :E)
I. Overview
1, About the Game
Earthshaking my company is the first South Korean Deputy online games, developed by the EST Soft, unlike other MMORPG, the game more prominent recreational in nature. Is an easy-style fantasy MMORPG, the game does not difficult game system, there are no time constraints, the general MMORPG players are very easy to use. In addition, in order to avoid endless Lian Ji, played in the design of the story, when a story will be the end of the New World and new tasks. Hailed as "a result of online games!"
2, described platform
Earthshaking-service system is a combination of inter-model used CentOS4.x the Linux system and Windows Server 2000 above the double-cross-platform system integration system; erection of a region needs at least 16 over all types of application servers, Each additional group needs at least 5 Application Server. Special note here is the earthshaking services side of the channel system features: free allocation of the number of channels, according to custom server configuration each server running the number of channels, so that the adjustment of the number of servers more diverse, but also made more flexible adjustment range.
The minimum framework of a regional server configuration include: account database, the database game, the game server, authentication server log, updated client server, chat servers, the overall management of servers, database query server, web server management. Below will continue to introduce various server functions and configuration.
3, topology
Show "cabal logical structure topology. Vsd" and "Cabal network topology. Vsd"
Second, server installation chapter
1, Win Server installation
1.1 software ready:
Windows 2000 Server installation was an English
MS Sql 2000 package
IIS package (i386 directory to copy the system of Pan-gen directory D)
Antivirus software Mcafee 8.0 en (copied to install the D-system software directory)
Driver ready server
1.2 hardware ready:
Server hardware: Show "Cabal server configuration files"
1.3 installation process
A, start the installation
District programme C-15 G above, the remaining D-.
9999 network connection a few other settings default;
B, after the completion of the installation
Chinese support for the system installation (CD-ROM or the need to install the i386 directory);
Step 1: Control Panel → regional and language options → language → installation files for East Asian Languages
Step 2: Control Panel → regional and regional language options → Options → two options were set to Chinese (PRC) and China
Step 3: Control Panel → regional and language options → High → Chinese (PRC)
installation of remote terminal (this must be installed before installing a patch SP);
In the control panel windows Add / Remove selected components of the installation.
the computer to change its name;
According to the server functional constituencies and the current server named, such as: GameDB01, LogDB, etc.
Need to restart, all settings, such as completion of the final restart.
install windows SP4 patch;
the windows on-line upgrade: IE Toolbar → Windows Update;
install antivirus software Mcafee 8.0 en, the latter to install on-line upgrade;
other components in accordance with the corresponding server functions of the installation (CD-ROM or the need to install the i386 directory);
2, Linux installation
CentOS 4.x installation CD-# 1-3
2.1 Installation Methods
The first CD on a CD-ROM drive, the system ROM-BIOS (SETUP mode), the choice of CD-ROM boot after the restart the server:
"boot:" type <ENTER>, you can use graphics screen mode.
2.2 CD to confirm whether physical abnormalities
Anaconda implementation, in order to test whether physical abnormalities CD, CD will test the screen. According to Skip.
2.3 Environmental Information
started LINUX set of environmental information. Elections "Next".
2.4 Language Select
Language Selection selection now set-up process required language. Is not set up to use the language of the future, the only choice for the language set-up process, usually elections "English".
2.5 Keyboard Configuration
opt-in keyboard types because most is the use of American-style keyboard, the election "USEnglish".
2.6 Installation Type
Cabal used in servers, set to Server can also be set to Custom mode.
2.7 Disk Partioning Setup
If the data server to use a backup server backup, will not be major problems, election Automatically partition. Or select Disk Druid, to create a new partition, the important data stored in the partition in.
2.8 Boot Loader Configuration
LINUX into the next stage of the "LINUX BOOT LOAD set up" stage.
By Next.
2.9 Network Configuration
set LINUX NETWORK stage.
IP points, select "Edit".
To confirm disarmament "Configure using DHCP", confirmed "Activate on boot".
IP Address and enter Netmask value. (And can be installed after configuration)
set LINUX servers HOST NAME. (Cases, game01, login02,…)
order to "Gateway" and the other NET communication, enter the Gateway value.
"Primary DNS" to use this server, enter the first NAME server IP address.
2.10 Firewall Configuration
LINUX own iptables firewall program set to No firewall, according to Next.
SElinux settings. Disables the election by Next.
"SElinux" the present system than the traditional LINUX an increase of three options, Disables, Warn, Active.
2.11 Additional Languasge Support
this stage LINUX servers choose to use the language. English (USA)
2.12 Time Zone
Time Zone Selection choose Beijing / Shanghai time.
2.13 Set Root Password
settings (Root Password)
Root is linux management accounts, the password must be set up here strong enough.
2.14 Package Group Selection
addition to the election before the PACKAGE, if there is no FTP server and Development Tools, set up after the confirmation.
[Package that] Package Grpup Selection
X Window System: WINDOW environment (PC to be elected) will be elected
GNOE Desktop Environment: X WINDOW use PACKAGE (GNOME) settings.
KDE (K Desktop Environment): X WINDOW PACKAGE (KDE) settings.
XFCE: XFCE is a new set of X WINDOW PACKAGE
Editors: LINUX can be used in the various editor PACKAGE
Engineering and Scientific: engineering, technical, scientific requirements in the area of the PACKAGE
Graphical Internet: INTERNET can be used several tools GRAPHIC
Text-based Internet: TEXT basis for the use of the environment INTERNET PACKAGE.
Office / Productivity: PC with LINUX can be used by the business, that is OA with PACKAGE
Sound and Video: Video card and sound card to support the PACKAGE
Authoring and Publishing: LINUX, book publishing and related software applications
Graphics: GIMP and LINUX with the same graphic tools.
Games and Entertainment: contains interesting LINUX with games and entertainment PACKAGE
Server Configuration Tools: set up the server tools.
Web Server: To use WEB SERVER to be set up (httpd)
Mail Server: sendmail as the pop mail server with PACKAGE.
Windows File Server: (SAMBA) related PACKAGE.
DNS Name Server: NAME SERVER must use the use of (named)
FTP Server: FTP settings (vsftpd)
PostgreSQL Database: Postgres SQL DATABASE set
MySQL Database: MYSQL DATABASE settings.
News Server: use NEWS SERVE, set NEWS DAEMON (innd)
Network Servers: NETWORK environment, set up C / S environment PACKAGE.
Legacy Network Server: LINUX Legacy network server with PACKAGE.
Development Tools: developers the tools necessary (gcc, c + +)
X Software Development: X software development tools.
GNOME Software Development: GNOME development tools
KDE Software Development: KDE development tools
XFCE Software Development: XFCF development tools
Legacy Software Development: Legacy software development requirements PACKAGE
Administration Tools: LINUX server management tools PACKAGE
System Tools: the management system used PACKAGE
Printing Support: printers related PACKAGE (use the printer server use)
Everything: All of the above PACKAGE (choose this time, a state-wide elections)
2.15 About to Install
the end of each stage of your choice, the choice of PACKAGE copy on the hard disk.
upon completion, the choice of "Reboot", set up the installation process all over, waiting for the document reproduction process that requires the installation CD-# 1-3.
3, database installation
MSSQL Server 2000 database installed in English, sa password must be set up strong enough, the main document database system can not be placed under the district, on the D-Division cabal \ data \ directory, installed after the bear SP4 patch.
4, security settings
4.1 CentOS system
A, BIOS security
Add BIOS password, set up the boot sequence, and floppy disk drive launched prohibited.
B, login passwords
Account Password strength: Edit / etc / login.defs document PASS_MIN_LEN equivalent, or at least password length of 8. Password recommendations set by the upper and lower case letters + + special characters numbers. The administrator's password should be updated regularly.
C, ID system
CentOS system in a number of default accounts and groups, such as ftp, halt, uucp, the prohibition of all the default operating system itself was launched, but unnecessary accounts, particularly in non-/ sbin / nologin at the end of the account. Such as: netdump, etc..
Steps: Edit / etc / passwd and / etc / shadow file, the account will be unnecessary Notes. As shown below:
Similarly modify / etc / group and / etc / gshadow documents, the group notes will be unnecessary. As shown below:
To retain the services required only to activate the account. For example, need to use ftp ftp services account can be opened and the group.
D, account password document security
Steps: to confirm the above documents are correct, revise the documents can not attribute to modify!
chattr + i / etc / passwd
chattr + i / etc / shadow
chattr + i / etc / group
chattr + i / etc / gshadow
All the above can be installed on the server test conducted after the operation. (Note: The other important confirmation modify configuration files are correct, is also here.)
E, security services launched
After the installation, will launch many without the use of the service; can be setup in the settings, the default start reunification of the closure.
Steps: Enter the "setup" menu appears as follows:
System services of choice, confirmed by Run Tool:
Map with[*] to check the service can be the space bar to choose. Just reservation network, crond, sshd, syslog services, other services in accordance with applications in the future operation of the increase. After the confirmation, ok button to confirm the withdrawal;
Set up services startup script authority, only root can control activated the service:
chmod-R 700 / etc / rc.d / init.d / *
chmod-R 700 / etc / init.d / *
F, the main guide the allocation of security procedures Grub
Steps: Edit / etc / grub.conf file, edit field timeout = 0; (note: not wait for the guide)
Add field password - md5 (md5 encryption string)
Guide the process to amend the main parameters need to enter a password. The use of grub-md5-crypt orders received md5 encryption string.
G, modify the registry information system
Login server system will automatically display system, the core version information.
We may amend / etc / issue and / etc / issue.net documents to modify this information.
CentOS release 4.3 (Final)
Kernel \ r on an \ m
These are the contents of the original document.
echo> / etc / issue
echo> / etc / issue.net
Empty file information.
H, user-level start the process of setting init
Steps: init for the first process, its always a PID, by editing / etc / inittab init to modify the start-up configuration.
Application server set up for the start-level 3 (start-a total of seven, 0 shutdown, the resumption of six, five window mode, a single-user mode, 2-4 multi-user mode.)
id: 3: initdefault:
Notes with Fu, shielding Ctrl + Alt + Delete to restart shortcuts.
# ca:: ctrlaltdel: / sbin / shutdown-t3-r now
After the operation can be modified: init q without the resumption of direct entry into force.
I, allocation of network access control
The default Linux system to allow all the requests, configuration TCP_WRAPPERS can enhance the security of the system, modify / etc / hosts.deny and / etc / hosts.allow to increase access restrictions.
Steps: Here's / etc / hosts.deny as "ALL: ALL" rejected all visits.
In / etc / hosts.allow file to add to allow the visit.
sshd: 192.168.1.0/255.255.255.0 game.cabal.com
That allows IP address 192.168.1.0 network segment or the host name game.cabal.com through SSH connection.
J, iptables configuration
Linux firewall software package, powerful, in actual operation, and not to use TCP_WRAPPERS at the same time.
According to the server configuration process into the practical application of the rules;
Many potential safety problems can be resolved through iptables.
K, to stop the broadcasting of the test ping
Steps: Edit startup script / etc / rc.d / rc.local in the final to add the following lines:
echo 1> / proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
L, the prevention of IP addresses to deceive
Steps: Editor host.conf file and add the following lines to prevent IP spoofing attacks.
order bind, hosts (analytic order after the first DNS query / etc / hosts Note: In contrast with the default settings)
multi off (Prohibition host with multiple IP addresses this is the default setting)
nospoof on (blocking IP address spoofing)
M, stop DoS attacks (HTTP Service)
Steps: setting system users resource constraints, the number and the process of memory, etc.; edit / etc / security / limits.conf Add the following lines:
# <domain> <type> <item> <value>
* Hard core 0
* Hard rss 5000
* Hard nproc 20
limits.conf documents relevant parameters of that. Numerical size based on the actual application of adjustment, or may lead to the normal application services.
Prohibition of the above parameters core files "core 0", the process of restricting the number of "nproc 20", and restrictions on the use of memory for 5 M "rss 5000".
N, restricted root user terminals Login
Steps: in / etc / securetty Notes tty2 ~ 11 lines, this root can only log in tty1.
O, system security log files
/ var / log system log directory of services syslogd system log
/ etc / syslog.conf system log service profile
/ var / log / secure records document is a network intrusion detection is an important clue;
/ var / log / messages recorded the important operating system in the standard error output and information;
P, packages
Update package, the software can fix potential safety problems that exist in and bug.
But do not use up2date registration is not automatically updated.
Some of the services of the package can manually download the update.
4.2 Windows 2000 Server
Configuration, should install SP4 patches, to open automatically updated.
A, the network connection to disable TCP / IP on the NetBIOS
Steps: Internet neighbors attribute → local connection attribute → TCP / IP attributes → High → WINS → disable TCP / IP on the NetBIOS
B, remove all default share
Steps: the establishment of a text document, enter the following code to save it as a bat batch file, the Executive.
echo the following code will be made after the batch file, can be finished!
echo Windows Registry Editor Version 5.00> c: \ delshare.reg
echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ lanmanserver \ parameters]>> c: \ delshare.reg
echo "AutoShareWks" = dword: 00000000>> c: \ delshare.reg
echo "AutoShareServer" = dword: 00000000>> c: \ delshare.reg
echo running delshare.reg modify the registry
regedit / s c: \ delshare.reg
delshare.reg echo delete temporary files
del c: \ delshare.reg
net stop server / y
net start server
C, no need to use the service disabled
Steps: Start → running → enter "services.msc"
TCP / IP NetBIOS Helper Disable
DHCP Disable
Wireless Configuration Disable
Print Spooler Disable
Windows Time Disable
Server Disable
Distributed File System Disable
Computer Browse Disable
D, IP sec set
Steps: Start → run, enter "MMC", according to determine; a Windows management console interface, the "CTRL + M" button in the dialog that appears mid-point "add" and "add an independent management unit" Dialog box, select "IP security policy management"
Deny all the ports and network
According to the functions of different Server, open the corresponding port services
Within the network makes no limit temporarily
E, involving the installation of the IIS, the specific configuration is as follows
Steps: WEB default homepage to amend the main directory and change the default directory, it is usually just to read and access logs of power. To delete the original virtual directory, if need be to re-establish their new (such as scripts) re-allocation of the implementation of licensing, not to delete the ISAPI application settings (in particular. Htw. IDQ. Printer, etc.) do not want to install WEB management.
F, Terminal Services settings
Steps: Terminal Services is win2000 built-in remote management procedures, as long as the default configuration Administrators can remotely manage.
Laws connected authority to designate a single user and the group can use the system, so that hackers to join a Administrators users do not use Terminal Services management. If necessary, can also modify the TCP port terminal services. (IPsec can be set up to allow Terminal Services network address)
4.3 MS Sql 2000 server settings
Steps:
A, using a secure password strategy;
For sa should also note that at the same time not to let sa account password written on the application or script.
SQL Server 2000 installed, if the use of mixed mode, then need to enter sa password, unless you recognized the need to use air password.
B, the use of safety account strategy;
Since SQL Server can not be changed sa user name, we can not remove the super-user, therefore, we must account for most of this protection, of course, including the use of a very strong password, it's best not to use the database application sa account , Only when no other means to log in to SQL Server instance (for example, when the other system administrators can not be used or have forgotten your password) when the use of sa. Proposed the establishment of a new database administrator with the same privileges and sa super users to manage the database. Account security strategy also includes Do not let the account administrator privileges proliferation.
SQL Server authentication mode Windows identity authentication and mixed the two. If the database administrator does not want the operating system administrator to landing through the operating system to access the database, they may account in the management of the system account "BUILTIN \ Administrators" delete. But to do so once the result is the sa account forget your password, there is no way to restore the. Many host the use of database application just to make enquiries, such as amending the simple function, according to the actual needs of the distribution account, and given only to meet the application requirements and needs of the authority. For example, for as long as the function, then use a simple account of the public can select it.
C, expansion of storage management processes;
The storage process of major surgery, and called on account of the process of expanding access to stored carefully. In fact, in most applications is less than the number of system memory process, and so many of the SQL Server system stored procedure is used to meet the needs of customers, so please delete unnecessary storage process, because some of the storage process can be very Easily be used to upgrade access or damage.
If you do not need to expand storage process xp_cmdshell to remove it. The use of the SQL statement:
use master
sp_dropextendedproc xp_cmdshell
xp_cmdshell is the best shortcut into the operating system, database left to the operating system is a great back door. If you need the storage process, please use this phrase can also be restored.
sp_addextendedproc xp_cmdshell, xpsql70.dll
If you do not need to discard OLE automatic storage process (for the management of some of the features can not be used)
These processes include the following:
Sp_OACreate Sp_OADestroy Sp_OAGetErrorInfo Sp_OAGetProperty
Sp_OAMethod Sp_OASetProperty Sp_OAStop
Removed from the registry do not need to visit the storage process, the registry storage process can even read out the operating system administrator password
Are as follows:
Xp_regaddmultistring Xp_regdeletekey Xp_regdeletevalue Xp_regenumvalues
Xp_regread Xp_regremovemultistring Xp_regwrite
There are other storage expansion process need to check. In the process of handling storage, make sure to avoid the application of the database or injury.
5, server installation
5.1 Linux server installation
5.1.1 Linux System Application Server Category
GlobalDBAgent - ACCOUNT DB communication with the server;
DBAgent - GAME DB communication with the server;
GlobalMgrSvr - connecting GDBA, LoginSvr, WorldSvr, (Server Monitor) communication between the server;
LoginSvr - and the audience communication, authentication server log;
WorldSvr - game server
ChatNode - chat server
Port information
GlobalDBAgent DBAgent GlobalMgrSvr LoginSvr WorldSvr ChatNode
38180 38181-38189 38170 38101-38109 38111-38119 38121
5.1.2 Linux server procedures
All of the daemon, the accounts are in the implementation of the cabal, we must join the cabal within the system account (client installation services automatically when completed);
# Useradd cabal
A, DataBase communications RPM (unixODBC, freetds-unixodbc) settings.
In order to DB and communications, should be prepared for the following RPM. Namely: GDBA, DBA servers necessary procedures;
B, unixODBC set
External networks available, it can be installed on a network:
# Yum install unixODBC
Can also download the settings:
# Rpm-Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpm
C, freetds-unixodbc set
In the use of Sybase / Microsoft's Tabular DataStream protocol, but now the 0.64 RC3 version, the direct use of RPM packages for installation, orders are as follows:
# Rpm-Uvh freetds-unixodbc-0.64RC3-1.i386.rpm
5.1.3 unixODBC, freetds-unixodbc set up after the installation
In order to support the Chinese, it is necessary to set up environmental parameters, FREETDS_UNIXODBC_CHARSET = 'cp936', we are asked to use the account cabal, to / home / cabal / .bash_profile to the parameters of Riga into FREETDS_UNIXODBC_CHARSET = 'cp936';
# Adduser cabal
(If there is no cabal account, on the establishment of a. Do not need your password.)
# Vi / home / cabal / .bash_profile
if [-f ~ /. bashrc]; then
. ~ /. Bashrc
fi
PATH = $ PATHHOME / bin
/ etc / odbcinst.ini documents have confirmed the following, if not added.
# vi / etc / odbcinst.ini
[FreeTDS]
Description = FreeTDS unixODBC Driver
Driver = / usr/lib/libtdsodbc.so.0
Setup = / usr/lib/libtdsodbc.so.0
UsageCount = 1
In / etc / odbc.ini in the server by adding the following information.
[Server name]
Driver = FreeTDS (and / etc / odbcinst.ini, the same can be specified)
Server IP Address =
Port = Port, the basic 1433
Database = DATABASE name
TDS_Version = version of MS-SQL 2000 8.0
EX 1) set DBAgent, adding GAMEDB content.
# vi / etc / odbc.ini
[CabalGame01]
Driver = FreeTDS
Address = 192.168.0.21
Port = 1433
Database = SERVER01
TDS_Version = 8.0
[CabalGame02]
Driver = FreeTDS
Address = 192.168.0.21
Port = 1433
Database = SERVER02
TDS_Version = 8.0
…….
EX 2) set GDBA, adding ACDB content.
# vi / etc / odbc.ini
[CabalAccount]
Driver = FreeTDS
Address = 192.168.0.26
Port = 1433
Database = ACCOUNT
TDS_Version = 8.0
5.1.4 cabal-server RPM installation procedures for client service that is cabal
A, cabal-server settings
Set cabal-server-1.0-1.i386.rpm. (1.0-1 for-service version)
# Rpm-Uvh cabal-server-1.0-1.i386.rpm
Preparing ... ################################# [100%]
1: cabal-server ################################# [100%]
<Reference> if not installed or unixODBC freetds-unixodbc and set RPM, it will appear the following errors.
# Rpm-Uvh / tmp/cabal-server-1.0-1.i386.rpm
error: Failed dependencies:
libodbc.so.1 is needed by cabal-server-1.0-1.i386
libodbcinst.so.1 is needed by cabal-server-1.0-1.i386
Suggested resolutions:
/ home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/unixODBC-2.2.9-1.i386.rpm
Non-use of DBA, GDBA the server does not require the above RPM, can be set up at the election - nodeps.
# Rpm-Uvh - nodeps / tmp/cabal-server-1.0-1.i386.rpm
<Reference> If you want to have been set up in the cabal-server to server settings RPM, can be deleted later installed, the settings if you choose force, not mandatory heavy equipment can be deleted RPM.
# Rpm-Uvh-nodeps - force / tmp/cabal-server-1.0-1.i386.rpm
Note: The RPM includes all services Cabal end of the process procedures.
B, / etc / cabal / server_list set
In / etc / cabal / server_list down to the corresponding server operating DEAMON;
EX) on the server, including GlobalDBAgent, GlobalMgrSvr, DBAgent_01, DBAgent_02 the process
# vi / etc / cabal / server_list
GlobalDBAgent
GlobalMgrSvr
DBAgent_01
DBAgent_02
C, / etc / cabal / *. ini settings
Replacement / etc / cabal / *. ini the contents of the document.
<Reference> rpm set up after the formation of GlobalMgrSvr.ini, WorldSrv.ini, LoginSrv.ini, GlobalDBAgent.ini, DBAgent.ini process configuration file server is the template, to amend this document, the Executive / home / cabal / gen_config.sh, Will be in accordance with the / etc / cabal / server_list in the process, and to automatically generate the official carrier of the server configuration files (*. ini);
Profiles of some of the non-use (for example, Internet cafes certification), the content can be added before the (.
EX) of the server's document templates
# vi / etc / cabal / DBAgent.ini
[NetLib]
; Port = DBAgent use of the port, the serial number.
Port = 38181
SendMaxBufSize = 65536
ProcessDataLimit = 10000
MaxUserNum = 100
WatchsNoPackLimit = 100000
SystemLogTTimeOut = 100
ReactorTimeOut =- 1
LogLevel = 3
[DBAgent]
ServerIdx = 1
DBProcessTNum = 5
With; DNS = odbc.ini specified in the [server name] unanimously.
DSN = CabalGame01
[DSN]
; DBAddr = GAMEDB IP, WINDOW server set up the necessary parts.
DBAddr = 218.153.8.36
; DBCatalog = DB name, WINDOW server set up the necessary parts.
DBCatalog = SERVER01
; DBId = connect DB account.
DBId = cabalgame
; DBPwd = connect DB account password.
DBPwd = rjf2aus.wnrdj
# vi / etc / cabal / GlobalDBAgent.ini
[NetLib]
; Port = GDBAgent use of the Port,
Port = 38180
SendMaxBufSize = 65536
ProcessDataLimit = 30000
MaxUserNum = 32
WatchsNoPackLimit = 100000
SystemLogTTimeOut = 100
ReactorTimeOut =- 1
LogLevel = 3
[DBAgent]
ServerIdx = 128
DBProcessTNum = 10
With; DNS = odbc.ini documents kept by the [server name] consistent.
DSN = CabalAccount
[DSN]
; DBAddr = ACDB IP
DBAddr = 218.153.8.36
; DBCatalog = DB name
DBCatalog = ACCOUNT
; DBId = connect the DB account
DBId = cabalgame
; DBPwd =
DBPwd = rjf2aus.wnrdj
# vi / etc / cabal / GlobalMgrSvr.ini
[NetLib]
; Port = GlobalMgrSvr use of the Port,
Port = 38170
SendMaxBufSize = 65536
ProcessDataLimit = 50000
MaxUserNum = 500
WatchsNoPackLimit = 100000
SystemLogTTimeOut = 100
ReactorTimeOut =- 1
ConnectRetryTime = 5000
ConnectRetryNum = 50
LogLevel = 3
[DBAgent]
; Addr = GDBAgent IP
Addr = 127.0.0.1
; Port = GDBAgent Port
Port = 38180
[PCBangLK]
Addr =
Port =
# / etc / cabal / LoginSvr.ini
[NetLib]
; Port = LoginSvr use of the Port.
Port = 38101
SendMaxBufSize = 65536
ProcessDataLimit = 1024
MaxUserNum = 20000
WatchsNoPackLimit = 10000
SystemLogTTimeOut = 100
ReactorTimeOut =- 1
ConnectRetryTime = 5000
ConnectRetryNum = 10
LogLevel = 3
[LoginSvr]
GroupIdx = 1
Timer = 1:10000,2:5000,3:5000
NoActiveLimitTime = 40000
; Designated client version. Client to be modified version of the updated information.
client_version = 9932
[GlobalMgrSvr]
; Addr = GlobalMgrSvr IP
Addr = 218.153.8.38
; Port = GlobalMgrSvr port
Port = 38170
# Vi / etc / cabal / WorldSvr.ini
[NetLib]
; Port = WorldSvr use of the Port.
Port = 38111
SendMaxBufSize = 32768
ProcessDataLimit = 10000
MaxUserNum = 500
WatchsNoPackLimit = 30000
UseEncryptPacket = 1
SystemLogTTimeOut = 100
ReactorTimeOut = 100
DisableReactorPipe = 1
ConnectRetryTime = 5000
ConnectRetryNum = 10
LogLevel = 3
[WorldSvr]
; ServerIdx = server group serial number
ServerIdx = 1
; GroupIdx = channel serial number
GroupIdx = 1
Timer = 1:100,2:150,3:3000,4:10000,5:5000,6:60000,7:360000 0,8:2000,9:10000
CommonIniPath = Common.ini
IPAddress =
UpdateInterval = 300000
# UseGameGuardAuth
# # GAME GUARD certified to use it or not (0: false, 1: true)
UseGameGuardAuth = 0
# AddGameGuardName
# # GAME GUARD certification, V2.5 started not to use
AddGameGuardName = libggauth2.so.0
# GameGuardInterval
# # GAME GUARD certification invitation interval (msec)
# # GAME GUARD certification skills implementation time on / off: GameGuardInterval = 0
GameGuardInterval = 60000
NoResponseTimeout = 180000
[DBAgent]
; DBAgent IP
Addr = 218.153.8.38
; DBAgent Port
Port = 38181
[GlobalMgrSvr]
; GlobalMgrSvr IP
Addr = 218.153.8.38
; GlobalMgrSvr port
Port = 38170
Note: templates gen_config.sh documents through the script processing to generate the official carrier of the configuration files.
D, / home / cabal / gen_config.sh implementation
Executive / home / cabal / gen_config.sh. Basis for / etc / cabal / server_lis server in the directory, in / etc / cabal / folder automatically generate the official carrier of the Environment set up a file server (ini). In addition, the generation / etc / init.d / server name implementation document.
# / home / cabal / gen_config.sh
The following document is a formal document on the server operators, the implementation of / home / cabal / gen_config.sh after. To carefully check each document set is complete.
DBAgent_XX.ini (XX: the server group sequence)
GlobalMgrSvr.ini
GlobalDBAgent.ini
LoginSvr_XX.ini (XX: LoginSvr the number of servers, serial number has nothing to do with the server group.)
WorldSvr_XX_YY.ini (XX: Server Group serial number, YY: Channel serial number)
<Reference> If you have modified your / etc / cabal / server_list DAEMON name, the implementation of the / home / cabal / gen_config.sh, modify / etc / cabal / server_list must once again after the implementation of / home / cabal / gen_config.sh
E, GlobalMgrSvr server (DAEMON) Certification
Before the implementation of GMS, the need for GMS authentication code. Certification is EST, the new application server settings; (limited creation of a new server must pass EST)
F, on the server (DAEMON) wrong, it is necessary to set up Generation Core documents
In order to understand the reasons for the services of downtime, set up to generate the core document.
/ etc / init.d / functions of DAEMON function, can be found as follows:
# Vi / etc / init.d / functions
….
# Make sure it doesn't core dump anywhere unless requested
ulimit-S-c $ (DEMON_COREFILE_LIMIT: -0)> / dev / null 2> & 1
# If they set NICELEVEL in / etc / sysconfig / foo, honor it
[-N "$ NICELEVEL"] & & nice = "nice-n $ NICELEVEL"
# And start it up.
if [-z "$ user"]; then
$ nice initlog $ INITLOG_ARGS-c "$ *"
else
$ nice initlog $ INITLOG_ARGS-c "runuser-s / bin / bash - $ user-c \" $ * \ ""
fi
[ "$?"-Eq 0] & & success $ "$ base startup" | | failure $ "$ base startup"
Below the part of the
$ nice initlog $ INITLOG_ARGS-c "runuser-s / bin / bash - $ user-c \" $ * \ ""
Amended to read as follows.
$ nice initlog $ INITLOG_ARGS-c "runuser-s / bin / bash - $ user-c
\ "ulimit-S-c $ (DEMON_COREFILE_LIMIT: -0)> / dev / null 2> & 1 & & $ * \" "
5.1.5 server (DAEMON) implementation
The implementation of the server DAEMON:
# Service DAEMON names start
Ex) service WorldSvr_01_01 start
Service LoginSvr_01 start
Uniform implementation of the server DAEMON:
# Service cabal start
5.1.6 ACE Library
All servers are required ACE, now use a version 5.5.1.
Check whether there is a server / usr/lib/libACE.so.5.5.1 documents.
After-installation services, will automatically set up.
5.1.7 the process of setting soft link
The actual server, is linked to the use of the name server
# Ls-al / usr/bin/DBAgent_01
lrwxrwxrwx 1 root root 18 May 8 09:11 / usr/bin/DBAgent_01 -> / usr / bin / DBAgent
# Ls-al / usr/bin/WorldSvr_01_10
lrwxrwxrwx 1 root root 19 May 8 09:11 / usr/bin/WorldSvr_01_10 -> / usr / bin / WorldSvr
5.2 Windows server system installed
5.2.1 operating system in the windows of the cabal-service program introduced
Account database, the database server game
Update servers: P3 and update web (info server)
Update server elements.
■ Client-Side
Updater (Cabal update file download application)
■ Server-Side
Update web Server (info server)
-- Urlinfo.ini (environment File), fileinfo.dat (recorded documents CRC)
-- UpdateFileName.torrent (Torrent File)
-- Setup.exe.torrent (install version with Torrent File)
5.2.2 database server
Games database server that see "GameDB instruction manual";
Account database that South Korea did not provide;
5.2.3 update server info server
A, identified in the Server IIS installed on the server
B, will be updated documents and urlinfo to copy the http directory, the structure is as follows:
Pds / directory:
-- Setup.exe.torrent document (to have the installation file.)
Update / Files / Pure / directory:
-- Urlinfo.ini, FileInfo.dat paper (update information and records the documents of the CRC)
Pds/P3_SerialNumber /
- 如果 P3Server 有3台, 就会有 P3_1, P3_2, P3_3文件夹, 更新文件update_123.dat, update_124.dat, update_125.dat 要在 P3_1, P3_2, P3_3文件夹. 文件名字虽然一样,但内容不同。
EX)
Pds/P3_1/
update_123.torrnet, update_124.torrent, update_125.torrent
Pds/P3_2/
update_123.torrnet, update_124.torrent, update_125.torrent
Pds/P3_3/
update_123.torrnet, update_124.torrent, update_125.torrent
注: P3_1/, P3_2/, P3_3/里有内容不同的torrent 文件, P3_1/里有指向 P3Server 1的内容,P3_2/里有指向P3Server 2的内容。
C、确认链接正确:
打开网页浏览器,在地址栏输入下面地址.
CS-Arena.com - professionelles Game-, Rootserver- & Housingbusiness DNS 名称/Update/Files/Pure/urlinfo.ini
EX) [Only registered and activated users can see links. ]
下载窗口出现,说明可以正常设置了。
开启服务器
Server Monitor 开服。玩家正常登录,确定更新完成。
注:如需要,可在防火墙作限制,进行内部测试。
4.4客户端更新流程
A、上传CDN
更新包文件update_xxx.dat(xxx为更新版本号,非客户端版本号)
上传CDN的FTP 222.73.242.246 的update目录
计算dat文件的md5值,使用工具winmd5等。
发送以上信息给CDN:邮件'[Only registered and activated users can see links. ]'; '[Only registered and activated users can see links. ]'; '[Only registered and activated users can see links. ]'
邮件内容写明更新文件名,upload位置,md5值,更新频道。例如:
Icust 您好!