cabal server guide by fatal

66
CABALEarthshaking Maintenance management handbook Documents edition 1.00 Documen ts author Tian 祎 qing Document s reading Project management group Compositi on date 2007-6- 11 Recentl y revised 2007-6-11 Document s attribut e Restricted data This handbook including from server installment ->Disposition ->Safe - >Maintenance ->Renewal ->Backup ->The breakdown and so on the entire aspect, the detailed introduction earthshaking operation and the management, including its server core technologies and the detailed disposition, belonged to the security documents, supplied the department interior use sincerely, asked everybody to take care of properly, outside prevented released. [[祎]] Item Record First, Project outline-------------------------------------- ----------------40 1The game introduces --------------------------------------------------------------------- --------------- 40 2Platform description --------------------------------------------------------------------- --------------- 40 3Topology --------------------------------------------------------------------- --------------- 40 Second, Service end installment disposition---------------------------------- ------------40 1 Win Server Installment ---------------------------------------------------------------------

Upload: ingerul-cpx

Post on 08-Mar-2015

557 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Cabal Server Guide by Fatal

CABALEarthshakingMaintenance management handbook

Documents edition

1.00 Documents

author

Tian 祎qing Documents

reading

Project managemen

t groupComposition date

2007-6-11

Recently

revised

2007-6-11 Documents

attribute

Restricted data

This handbook including from server installment ->Disposition ->Safe ->Maintenance ->Renewal ->Backup ->The breakdown and so on the entire aspect, the detailed introduction earthshaking operation and the management, including its server core technologies and the detailed disposition, belonged to the security documents, supplied the department interior use sincerely, asked everybody to take care of properly, outside prevented released.

[[子]]  Item  RecordFirst, Project

outline------------------------------------------------------401The game introduces ------------------------------------------------------------------------------------ 402Platform description ------------------------------------------------------------------------------------ 403Topology ------------------------------------------------------------------------------------ 40

Second, Service end installment disposition----------------------------------------------401 、 Win Server Installment ----------------------------------------------------------------------------- 402 、 Linux Installment ---------------------------------------------------------------------------------- 413Database installment ---------------------------------------------------------------------------------- 514Safe establishment------------------------------------------------------------------------------------- 525Service end procedure installment ------------------------------------------------------------------------------ 576Disposition explanation ------------------------------------------------------------------------------------ 75

Page 2: Cabal Server Guide by Fatal

Third, Maintenance management----------------------------------------------------801Tool introduction ------------------------------------------------------------------------------------ 802Routine maintenance ------------------------------------------------------------------------------------ 833Engine off maintenance ------------------------------------------------------------------------------------ 864Renewal flow ------------------------------------------------------------------------------------ 875Data backup ------------------------------------------------------------------------------------ 98

Fourth, EarthshakingFAQ--------------------------------------------------961Service end breakdown ---------------------------------------------------------------------------------- 962Client side breakdown ---------------------------------------------------------------------------------- 97

Fifth, Reference option------------------------------------------------------971Reference documents------------------------------------------------------------------------------------972Other explanations------------------------------------------------------------------------------------97

First, project outline1The game introduces    Earthshaking is our company proxy first section South Korean network game, byEST SoftThe development, it is different with otherMMORPGIn game more prominent leisure nature.Is a section easy seat of honor singularly varied styleMMORPGIn the game difficult not to have understood game system, also has not had in the time limit, generalMMORPGPlays the families all to be able the very easy seat of honor.Moreover, in order to avoid practicing the level endlessly, in the game will have designed the plot, after a plot had ended will be able to have the new world and the new duty.Is “has the result network by the reputation to swim!”2Platform description

The earthshaking service end is the cross system combination pattern, usedCentOS4.x[[ 的 ]]LinuxSystem sumWindows Server 2000 Above edition double system cross platform conformity system; Erects group of big areas to need at least16Above Taiwan's each kind of application server, simultaneously every time increases group of need at least5Taiwan application server.Here must explain is specially the earthshaking service end channel system characteristic: May dispose the channel freely how many, from defines each server according to the server disposition

Page 3: Cabal Server Guide by Fatal

to move how many channels, thus causes the server quantity the adjustment diverse, also causes the adjustment scope to be more nimble.

A skeleton region server lowest disposition includes: The account number database, the game database, the game server, register authenticate the server, the client side renewal server, chat the server, the overall situation management server, the database inquiry server,webManagement server and so on.Below can introduce each server function and the disposition one after another.3TopologyDetails "cabalLogical organization analysis situs chart.vsd" As well as "CabalNetwork architecture analysis situs chart.vsd》Second, server installment1、Win Server Installment

1.1Software preparation:Windows 2000 ServerEnglish mounting flange 1 Opening MS Sql 2000Routine packageIISRoutine package (i386The table of contents duplicates in the systemDUnder packing table of contents)Anti-virus softwareMcafee 8.0 en(Installs the gable system to the system inDPlatesoftwareUnder table of contents)Server driver preparation1.2Hardware preparation:Server hardware: Details "CabalServer disposition documents"1.3The installation process

AStarts to installDistrict plan CPlate15GAbove, otherDPlate.Network connection number9999Other establishment default;BAfter, the installment completes

Installs Chinese support for the system (to need to install the compact disc ori386The table of contents provides);

First step:Control panel→Region and language option→Language→Installs the document for the East Asian language Second step:Control panel→Region and language option→Region option→Two optionses respectively suppose areChinese(PRC)WithChina Third step:Control panel→Region and language option→High-

level→Chinese(PRC) Installs the remote terminal (this item certainly to have in the

attireSPIn front of the patch installs);In control panelwindowsIncrease/Deletes in the module to select the installment. Carries on the name change to the computer;Do not name according to the server group with the current server function, for example:GameDB01,LogDBAnd so onNeeds again to open, and so on all establishments complete, finally opens again. Installmentwindows SP4Patch; RightwindowsCarries on the online promotion : IEToolbar→Windows

Update;

Page 4: Cabal Server Guide by Fatal

Installment anti-virus softwareMcafee 8.0 enafter Installs must carry on the online promotion;

Other modules carry on the corresponding installment according to the server function (to need to install the compact disc ori386The table of contents provides);

2 、 Linux Installment    CentOS 4.x Installs the compact disc#1-3Opening

2.1Installs the method choice[[ 把 第 ]]1Opening CDPlace CD-ROM The light drives, in systemROM-BIOS (SETUPPattern)In, choice CD-ROM bootLatter opens the server again:

“boot: ”In inputs <ENTER>,May use to reveal the card picture pattern establishment.

2.2Confirmation CDIs physics whether there is unusual

AnacondaWhen execution, in order to examineCDIs physics whether there is unusual, can appearCDTest picture. According toSkip.

2.3Environmental information

Page 5: Cabal Server Guide by Fatal

Starts to establishLINUXEnvironmental information. Electing“Next”.2.4Language Select

Language SelectionThe choice establishes the language now which the process needs.Establishes the language which later will need to use, only chooses the language which the establishment process will need, usually will elect“English”.

2.5 Keyboard Configuration

Page 6: Cabal Server Guide by Fatal

Choice suitable keyboard type. Because the majority uses US's -like keyboard, elects “U.S.English”.

2.6 Installation Type

CabalApplies in the server, establishesServer Also may establish asCustom Pattern.

2.7 Disk Partioning Setup

Page 7: Cabal Server Guide by Fatal

If various servers data the use backup server backup, cannot have the big problem, electsAutomatically partition. Or choiceDisk DruidFounds newlypartitionImportantdataStores up inpartitionIn.

2.8 Boot Loader Configuration

Under inducts the stageLINUX “LINUX BOOT LOAD Establishment”Stage.According toNext.2.9 Network Configuration

Page 8: Cabal Server Guide by Fatal

EstablishmentLINUX NETWORKStage.

MinuteIPWhen, choice “Edit”.The confirmation relieves“Configure using DHCP”,Confirmation“Activate on boot”.InputIP AddressWith Netmask Value.After (also may install disposes)

Page 9: Cabal Server Guide by Fatal

EstablishmentLINUXServerHOST NAME. (Examplegame01, login02,…) In order to cause“Gateway”With otherNETCorrespondence, input GatewayValue.“Primary DNS”When this server uses, inputs firstNAMEServerIPAddress.2.10 Firewall Configuration

Page 10: Cabal Server Guide by Fatal

LINUXOwn firewall procedureiptablesEstablishes No firewallAccording to Next. SElinuxEstablishment. ElectingDisablesAccording to Next.“SElinux”Present ratio traditionLINUXThe system increased three options, Disables, Warn, Active.2.11 Additional Languasge Support

This stage choiceLINUXThe server must use language. English(USA)2.12 Time Zone

Page 11: Cabal Server Guide by Fatal

Time Zone Selection Chooses Beijing/Shanghai area time interval.2.13 Set Root Password

Establishment(Root Password)RootYeslinuxThe management account number, here establishes the password must enough be strong.2.14 Package Group Selection

Page 12: Cabal Server Guide by Fatal
Page 13: Cabal Server Guide by Fatal

Except before already electedPACKAGE,If does not haveFTP serverWith Development Toolsafter Confirmed establishes.

[Software package explanation] Package Grpup SelectionX Window System: WINDOWEnvironment(PCWith must elect)When must electGNOE Desktop Environment: X  WINDOWWithPACKAGE (GNOME)Establishment.KDE (K Desktop Environment): X WINDOW PACKAGE (KDE)Establishment.XFCE: The establishment callsXFCENew X WINDOW PACKAGE Editors: May use inLINUXEach kind of editorPACKAGEEngineering and Scientific: The technology, the technology, the scientific domain needsPACKAGEGraphical Internet: MayINTERNETUse several kindsGRAPHIC ToolText-based Internet: TEXTUnder the foundation usesINTERNETEnvironmentPACKAGE.Office/Productivity: PCWithLINUXMay use the commerce uses, namelyOAWithPACKAGESound and Video: Support sound card and video frequency cardPACKAGE

 Authoring and Publishing: LINUXNext, work and publication related application softwareGraphics: WithGIMPSameLINUXWithgraphicTool.Games and Entertainment: Contains interestingLINUXWith game and entertainmentPACKAGE

 Server Configuration Tools: Establishes the server the tool.Web Server: Must useWEB SERVERMust establish (httpd)Mail Server: sendmail [[的]] popThe same server usesPACKAGE.Windows File Server: (SAMBA)CorrelationPACKAGE.DNS Name Server: UseNAME SERVERMust use (named)FTP Server: FTP Establishment(vsftpd)PostgreSQL Database: Postgres SQL DATABASEEstablishmentMySQL Database: MYSQL DATABASEEstablishment.News Server: UseNEWS SERVEWhen, establishmentNEWS DAEMON (innd)Network Servers: NETWORKUnder environment, establishmentC/SEnvironmentPACKAGE.Legacy Network Server: LINUX Legacy network The server usesPACKAGE.Development Tools: The exploiter needs tool (gcc, c++)X Software Development: X Software development kit.GNOME Software Development: GNOME Development kitKDE Software Development: KDE Development kitXFCE Software Development: XFCF Development kitLegacy Software Development: Legacy The software development needsPACKAGE

 Administration Tools: LINUXServer management toolPACKAGESystem Tools: The system administration usesPACKAGEPrinting Support: The printer is relatedPACKAGE (When use printer server uses)Everything:Above allPACKAGE (When chooses this, assumes all chooses the condition)2.15 About to Install

Page 14: Cabal Server Guide by Fatal

After finished various stages choice, electsPACKAGEDuplicates in the hard disk.

Completes after completely, choice“Reboot”Installs the establishment process to finish completely, waiting document copy process, need#1-3Opens installs the compact disc.

3Database installment    Database installmentMSSQL Server 2000English edition,saThe password must establish enough strongly, the database master file cannot place under the system district, placesDPlate districtcabal \ data \Under the table of contents, after the installment finished getsSP4Patch.4Safe establishment

4.1 CentOSSystemA、BIOSSafe

Page 15: Cabal Server Guide by Fatal

IncreaseBIOSThe password, the establishment start order, forbids the floppy disk and the light drives the start.

BRegisters the passwordAccount number password intensity: Revision/etc/login.defsIn

documentPASS_MIN_LENEquivalent8Namely the least password length is8Position.Suggested the password establishment is composed by the big lowercase letter + special character + numeral.The manager password should the continuous revision.

CSystem account numberCentOSIn the system has some default account number and the group,

likeftp、halt、uucpAnd so on, prohibition all defaults are started by operating system

itself, but actually nonessential account number, in particular by must/sbin/nologinEnding account number.For example:netdumpAnd so on.

Sequence of operation: Revision/etc/passwdWith/etc/shadowDocument, nonessential account number annotation.The following chart shows:

Similar revision/etc/groupWith/etc/gshadowDocument, nonessential group annotation.The following chart shows:

Page 16: Cabal Server Guide by Fatal

The suggestion only retains the account number which must serve starts.For instance needs to useftpWhen service may begin usingftpAccount number and group.

DAccount number password document securitySequence of operation: After confirmed above document unmistakable, revises

above file attribute for not to be possible the amendment file!chattr +i /etc/passwd chattr +i /etc/shadow chattr +i /etc/group chattr +i /etc/gshadowThe above may install the test after the server to finish completely carries on the

operation.(Note: Other important configuration files after confirmed revises unmistakably, also presses this operation.)

EStart service securityAfter the system installment finished, can start the service which many does not

need to use; May insetupEstablishes, unification closure default start.Sequence of operation: Input “setup” Appears the following menu:

Page 17: Cabal Server Guide by Fatal

ChoiceSystem servicesItem, according toRun ToolConfirmation:

Page 18: Cabal Server Guide by Fatal

    In the chart brings[ * ]In order to select this service, may press the space bar to carry on the choice.Only must retainnetwork、crond、sshd、syslogThe services, other

services will operate according to the application procedure in later increases.After confirmation, according tookKey confirmation withdrawal;

Establishment service start script jurisdiction, only thenrootCan control starts each service:

chmod - R 700 /etc/rc.d/init.d/ *chmod - R 700 /etc/init.d/ *

FMatches the buyer vectoring procedureGrubSafeSequence of operation: Edition/etc/grub.confDocument, revision fieldtimeout=0;

(Note: When guidance did not wait for)Increase fieldpassword --md5 (md5Encryption string of character)

Revises the host vectoring procedure parameter to need to input the password.Usegrub-md5-cryptThe order obtainsmd5Encryption string of character.

GThe revision registers the system informationAfter the user registers the server the system to be able the automatic display

system, the essence edition information.We may through the revision/etc/issueWith/etc/issue.netThe document revises

these informations.CentOS release 4.3 (Final)Kernel \ r on an \ mThe above is in the original document content.echo > /etc/issueecho > /etc/issue.net Clear spatial document information.

Page 19: Cabal Server Guide by Fatal

HUser level start advancementinitEstablishmentSequence of operation: initFor first advancement, itPIDIs throughout1Through

edition/etc/inittab RevisesinitStart disposition.The establishment starts the rank using the server is3; (Start rank

altogether7Level,0Close-down,6Again opens,5Window pattern,1Single user pattern,2-4Multiuser pattern.)

id:3:initdefault:Adds on the annotation symbol, the shieldCtrl+Alt+DeleteStarts the quick key.#ca::ctrlaltdel:/sbin/shutdown - t3 - r nowAfter the revision finished may move:init q The direct activation does not need to

open again.IDisposition network access controlLinuxSystem default permission all requests, dispositionTCP_WRAPPERSMay

strengthen the system safety, the revision/etc/hosts.denyWith/etc/hosts.allowIncreases the visit limit.

Sequence of operation: Here/etc/hosts.denySupposes is “ALL: ALL” Rejection all visits.

In/etc/hosts.allowIn the document increases the permission the visit.sshd: 192.168.1.0/255.255.255.0 game.cabal.comExpresses the permissionIPAddress192.168.1.0Webpage or main

enginegame.cabal.comMay passSSHConnection.J、iptablesDisposition

LinuxThe firewall software package, the function is formidable, in the actual operation, do not have withTCP_WRAPPERSAlso uses.

The disposition process reads in the rule according to the server practical application;

Many security hidden dangers all may passiptablesSolves.KImpediment broadcast bandpingTestSequence of operation: Revision start script/etc/rc.d/rc.localBelow finally

increases the line:echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

LPreventionIPAddress deceit    Sequence of operation: Editionhost.confThe document and increases the following several lines to preventIPDeceit attack.

order bind , hosts (Analysis order for firstDNSLatter inquires/etc/hosts Note:

WithdefaultEstablishes opposite)multi off (Forbids the main engine to have manyIPAddress this for default

establishment)nospoof on (BlocksIPAddress deceit)MImpedimentDoSAttack (HTTPService)Sequence of operation: In establishment system user resources limit, memory

quantity as well as advancement number and so on; Edition/etc/security/limits.conf Below increases the line:

Page 20: Cabal Server Guide by Fatal

#< domain>     <type> < item>         <value>   *           hard    core             0   *           hard    rss             5000   *           hard    nproc           20limits.confThe document has the correlation parameter explanation.The value size

basis practical application carries on the adjustment, otherwise possibly causes to serve is unable to apply normally.

Above parameter prohibitioncore files “core 0”The limit advancement number is “nproc 20”Also the limit memory use is5M “rss 5000”。

NLimitrootThe user terminal registers    Sequence of operation: May in/etc/securettyAnnotationtty2~11Line, like thisrootOnly can intty1Registering.

OSystem safety journal file/var/log System diary catalogue syslogd System diary service name /etc/syslog.conf System diary service configuration files/var/log/secureThe recording document is examines whether has the important

clue which the network invades;/var/log/messages In recording system important operation standard and wrong

output information;PThe software package renewsRenews the software package, may revise the security hidden danger sum which in

the software existsbug。But does not register is unable to useup2dateAutomatic renewal.Some service software package may through the manual downloading renewal.

4.2 Windows 2000 ServerBefore the disposition, please first installSP4The patch, opens the

automatic renewal.AIs forbid in the network connectionTCP/IPOnNetBIOSSequence of operation : On net neighbor attribute→Local connection

attribute→TCP/IPAttribute→High-level→WINS→Being forbidTCP/IPOnNetBIOSBDeletion all default sharingSequence of operation: Establishes text documents, inputs following code again

preservation isbatThe batch run document, the execution.echo Makes the batch processing document after the following code, the execution

finished then!echo Windows Registry Editor Version 5.00> c:\delshare.regecho [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 Movement delshare.reg Revision registry regedit /s c:\delshare.reg echo Deletion delshare.reg Temporary file

Page 21: Cabal Server Guide by Fatal

del c:\delshare.reg net stop server /y net start serverCIs forbid does not need with the serviceSequence of operation:Start→Movement→Input “services.msc”

TCP/IP NetBIOS Helper     DisableDHCP                      DisableWireless Configuration    DisablePrint Spooler             DisableWindows Time              DisableServer                    DisableDistributed File System   DisableComputer Browse           DisableD、IP sec HypothesisSequence of operation : Start→Movement, input “MMC” According to

determination; AppearanceWindowsManagement control bench contact surface, according to “CTRL+M” The key, in the dialog box center point which appears “the increase”, in “the increase independent management unit” in the dialog box, selects “IPSecurity policy management”

DenyAll ports and networkAccording to differentServerFunction, opening corresponding service portIn the net does not make any definition temporarilyERegarding involvesIISThe installment, the concrete disposition is as followsSequence of operation:RevisionWEBTacitly approves the main page the main

table of contents disposition, the change default table of contents, so long as usually reads and the diary visit authority for it.Deletes the original hypothesized table of contents, if needs to be possible own to establish newly (for examplescripts) Redeploys the execution permission, deletes do not have to useISAPIThe application procedure establishment (is specially.htw .IDQ .printer And so on) do not have to installWEBManagement.

FTerminal service establishment    Sequence of operation: The terminal service iswin2000Bringing long-distance

executive program, under default disposition so long asAdministratorsMay the long-distance management.The revision connection jurisdiction, assigns the sole user andsystemThe group may use, like this has been joined by the hacker oneAdministratorsThe user cannot use the terminal to serve the management.When necessity also may revise the terminal serviceTCPPort.(May inIPsecEstablishes permits the terminal service the network address)

4.3 MS Sql 2000 serverEstablishmentSequence of operation:A、Use security password strategy;

Page 22: Cabal Server Guide by Fatal

RegardingsaShould pay attention, simultaneously do not have to letsaThe account number password writes in the application procedure or the script.

SQL Server 2000Installs, if uses the mix pattern, then needs to inputsaPassword, only if you confirmed must use the spatial password.

BUse security account number strategy;BecauseSQL ServerCannot changesaUser name, also cannot delete this super user,

therefore, we must carry on the strongest protection to this account number, certainly, including uses an extremely strong password, should better not have to use in the database applicationsaAccount number, only then when does not have the other means to register SQL Server Example (e.g., when other system managers not available or had forgotten password) when only then uses sa 。 Suggested the database

administrator establishes one to have newly withsaThe same jurisdiction super user manages the database.The safe account number strategy also includes do not have to let the manager jurisdiction the account number be in flood.

SQL ServerThe authentication pattern hasWindowsThe status authentication and the mix status authenticate two kinds.If the database administrator did not hope the operating system manager comes through the operating system debarkation to contact the database the speech, may in the account number management the system account number“BUILTIN \ Administrators”Deletion.But does this once the result issaThe account number forgot the password the speech, did not have the means to restore.The very many main engine use database application only is uses for to make the inquiry, the revision and so on the simple function, please according to the actual need assignment account number, and entrust with can satisfy the jurisdiction merely which the application requests and needs.For instance, so long as inquiry function, then uses one simplypublicThe account number canselectMight.

CManagement expansion memory process;Carries on the major surgery to the memory process, and must be prudent to the

account number transfer expansion memory process jurisdiction.In it really most applications does not use how many system memory process, butSQL ServerThe such many system memory process only is uses for to adapt the user community demand, therefore please delete the nonessential memory process, because some system memory process can use very easily by the human the promotion jurisdiction or carries on the destruction.

If you do not need to expand the memory processxp_cmdshellPlease remove it.Uses thisSQLSentence:

use master sp_dropextendedproc xp_cmdshell xp_cmdshellIs enters the operating system the best shortcut, is the database leaves

the operating system a big back door.If you need this memory process, please use this sentence also to be possible to restore.

sp_addextendedproc xp_cmdshell, xpsql70.dll If you do not need please to discardOLEThe automatic memory process (can create

in supervisor certain characteristics not to be able to use)

Page 23: Cabal Server Guide by Fatal

These processes including as follows: Sp_OACreate Sp_OADestroy Sp_OAGetErrorInfo Sp_OAGetProperty Sp_OAMethod Sp_OASetProperty Sp_OAStop Removes the registry visit memory process which does not need, the registry

memory process even can read out the operating system manager's passwordAs follows:Xp_regaddmultistring Xp_regdeletekey Xp_regdeletevalue Xp_regenumvalues Xp_regread Xp_regremovemultistring Xp_regwrite Also has other expansion memory process to need to inspect.In processing memory

process time, please confirm, avoids creating to the database or the application procedure injury.5Service end procedure installment

5.1 Linux Service end installment5.1.1 LinuxUnder the system applies the server typeGlobalDBAgent -WithACCOUNT DBCorrespondence server;DBAgent - WithGAME DBCorrespondence server;GlobalMgrSvr - ConnectionGDBA, LoginSvr, WorldSvr, (Server Monitor) Between

corresponds server;LoginSvr - With plays the family to correspond, the authentication registers server;WorldSvr - Game serverChatNode - Chats the serverPort information

GlobalDBAgent

DBAgent GlobalMgrSvr

LoginSvr WorldSvr ChatNode

38180 38181~38189

38170 38101~38109

38111~38119

38121

5.1.2 LinuxService end procedureAll daemon process, by cabalThe account number execution, must join in the

systemcabalAccount number (when installment service end completes automatically);# useradd cabal

A、DataBase Correspondence RPM (unixODBC, freetds-unixodbc) Establishment.For andDBThe correspondence, must prepare followingRPM. Namely: GDBA, DBAThe server must procedure;

B、unixODBC EstablishmentExterior network available speech, may use the network installment:

# yum install unixODBCAlso may download the establishment directly:

# rpm - Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpm

C、freetds-unixodbc EstablishmentIs usingSybase/Microsoft [[ 的 ]] Tabular DataStream protocolBut present0.64RC3

In edition, direct useRPMThe package carries on the installment, the order is as follows: # rpm - Uvh freetds-unixodbc-0.64RC3-1.i386.rpm

5.1.3 unixODBC, freetds-unixodbcAfter the installment establishesIn order to support Chinese, must establish in the environment

parameterFREETDS_UNIXODBC_CHARSET='cp936'We are the use callcabalThe account number, must in/home/cabal/.bash_profileThe document parameter riga entersFREETDS_UNIXODBC_CHARSET='cp936';

Page 24: Cabal Server Guide by Fatal

# adduser cabal(If does not havecabalThe account number, establishes one. Does not need to establish the password.)# vi /home/cabal/.bash_profileif [- f ~/.bashrc]; then   . ~/.bashrcfiPATH=$PATH:$HOME/binexport PATHunset USERNAMEexport FREETDS_UNIXODBC_CHARSET='cp936'

/etc/odbcinst.ini Confirmed in the document has following content, if does not have to add. #vi /etc/odbcinst.ini[FreeTDS]Description     = FreeTDS unixODBC DriverDriver          = /usr/lib/libtdsodbc.so.0Setup           = /usr/lib/libtdsodbc.so.0UsageCount      = 1

In/etc/odbc.iniThe riga enters following server information.[Server name]Driver     = FreeTDS (With/etc/odbcinst.iniIn assigns equally to be possible)Address         = ServerIPPort            = Port, Basic 1433Database        = DATABASENameTDS_Version     =Edition MS-SQL 2000 8.0EX 1) EstablishmentDBAgentWhen, advances GAMEDB Content.#vi /etc/odbc.ini[CabalGame01]Driver      = FreeTDSAddress     = 192.168.0.21Port        = 1433Database    = SERVER01TDS_Version = 8.0[CabalGame02]Driver      = FreeTDSAddress     = 192.168.0.21Port        = 1433Database    = SERVER02TDS_Version = 8.0…….EX 2) EstablishmentGDBAWhen, advancesACDBContent.#vi /etc/odbc.ini[CabalAccount]Driver      = FreeTDSAddress     = 192.168.0.26Port        = 1433Database    = ACCOUNTTDS_Version = 8.0

5.1.4 cabal-server RPM Installment namelycabalService end procedureA、cabal-server Establishment

Page 25: Cabal Server Guide by Fatal

Establishmentcabal-server-1.0-1.i386.rpm. (1.0-1In order to serve the end edition number)# rpm - Uvh cabal-server-1.0-1.i386.rpm Preparing…        ################################# [100%]   1:cabal-server  ################################# [100%]

<Reference>If does not install unixODBC Or freetds-unixodbcBut establishesRPM The speech, can appear following mistake. # 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

Does not useDBA, GDBAThe server does not need aboveRPM When establishment may elect--nodeps.# rpm - Uvh --nodeps /tmp/cabal-server-1.0-1.i386.rpm

<Reference>If thought already established cabal-server The server establishes againRPM after May delete installs again, When establishment if choosesforceDoes not delete may force the rewiringRPM. # rpm - Uvh - nodeps --force /tmp/cabal-server-1.0-1.i386.rpm

    Note: ThisRPMIncluding allCabalService end advancement procedure.B、/etc/cabal/server_list EstablishmentIn/etc/cabal/server_list Takes down the corresponding server to want the

operationDEAMON;EX) On the server includesGlobalDBAgent, GlobalMgrSvr, DBAgent_01, DBAgent_02Advancement#vi /etc/cabal/server_listGlobalDBAgentGlobalMgrSvrDBAgent_01DBAgent_02EX) EstablishmentLoginSvr_01, WorldSvr_01_01, WorldSvr_01_02, WorldSvr_02_01, WorldSvr_02_02 Speech.#vi /etc/cabal/server_listLoginSvr_01WorldSvr_01_01WorldSvr_01_02WorldSvr_02_01WorldSvr_02_02

C、/etc/cabal/ *.ini EstablishmentReplacement/etc/cabal/ *.iniEstablishment document content. <Reference> rpm After the establishment produces GlobalMgrSvr.ini,

WorldSrv.ini, LoginSrv.ini, GlobalDBAgent.ini, DBAgent.iniIs the server advancement configuration files template, after revises this document, execution/home/cabal/gen_config.shCan defer to /etc/cabal/server_listIn advancement, the automatic production wants the official operation the server configuration files (*.ini);In the configuration files does not use part (Like, Internet bar authentication)In front of the content may the replenishment(;).

Page 26: Cabal Server Guide by Fatal

EX) Various servers establishment document template #vi /etc/cabal/DBAgent.ini[NetLib]; Port=DBAgentIn uses port Serial number. Port=38181SendMaxBufSize=65536ProcessDataLimit=10000MaxUserNum=100WatchsNoPackLimit=100000SystemLogTTimeOut=100ReactorTimeOut=-1LogLevel=3[DBAgent]ServerIdx=1DBProcessTNum=5Wants and; DNS= odbc.iniIn assigns[Server name]Consistent.DSN=CabalGame01[DSN]; DBAddr=GAMEDB IP, WINDOWThe server establishment needs part.DBAddr= 218.153.8.36 ; DBCatalog=DB NameWINDOWThe server establishment needs part.DBCatalog=SERVER01; DBId=ConnectionDB Account number.DBId=cabalgame; DBPwd=ConnectionDBAccount number password.DBPwd=rjf2aus.wnrdj#vi /etc/cabal/GlobalDBAgent.ini[NetLib]; Port=GDBAgentUse Port, Port=38180SendMaxBufSize=65536ProcessDataLimit=30000MaxUserNum=32WatchsNoPackLimit=100000SystemLogTTimeOut=100ReactorTimeOut=-1LogLevel=3[DBAgent]ServerIdx=128DBProcessTNum=10Wants and; DNS=odbc.iniDocument preservation [Server name]Consistent.DSN=CabalAccount[DSN]; DBAddr=ACDB IPDBAddr= 218.153.8.36; DBCatalog=DB NameDBCatalog=ACCOUNT; DBId=ConnectionDBAccount numberDBId=cabalgame; DBPwd=DBPwd=rjf2aus.wnrdj#vi /etc/cabal/GlobalMgrSvr.ini

Page 27: Cabal Server Guide by Fatal

[NetLib]; Port=GlobalMgrSvr Use Port, Port=38170SendMaxBufSize=65536ProcessDataLimit=50000MaxUserNum=500WatchsNoPackLimit=100000SystemLogTTimeOut=100ReactorTimeOut=-1ConnectRetryTime=5000ConnectRetryNum=50LogLevel=3[GlobalMgrSvr]Timer=1:10000WorldMaxUserNum = 100NoNotifyTimeLimit=60000DefaultServerOpen=0[DBAgent]; Addr=GDBAgent IPAddr= 127.0.0.1; Port=GDBAgent PortPort=38180[PCBangLK]Addr=Port=#/etc/cabal/LoginSvr.ini[NetLib]; Port=LoginSvrUse Port.Port=38101SendMaxBufSize=65536ProcessDataLimit=1024MaxUserNum=20000WatchsNoPackLimit=10000SystemLogTTimeOut=100ReactorTimeOut=-1ConnectRetryTime=5000ConnectRetryNum=10LogLevel=3[LoginSvr]GroupIdx=1Timer=1:10000,2:5000,3:5000NoActiveLimitTime=40000;Assigns the client side edition.After the client side renews must revise the edition information.client_version=9932[GlobalMgrSvr]; Addr=GlobalMgrSvr IPAddr= 218.153.8.38; Port=GlobalMgrSvr portPort=38170# vi /etc/cabal/WorldSvr.ini [NetLib]

Page 28: Cabal Server Guide by Fatal

; Port=WorldSvrUse Port.Port=38111SendMaxBufSize=32768ProcessDataLimit=10000MaxUserNum=500WatchsNoPackLimit=30000UseEncryptPacket=1SystemLogTTimeOut=100ReactorTimeOut=100DisableReactorPipe=1ConnectRetryTime=5000ConnectRetryNum=10LogLevel=3[WorldSvr]; ServerIdx=Server group serial numberServerIdx=1; GroupIdx=Channel serial numberGroupIdx=1Timer=1:100,2:150,3:3000,4:10000,5:5000,6:60000,7:3600000,8:2000,9:10000CommonIniPath=Common.iniIPAddress=UpdateInterval=300000# UseGameGuardAuth## GAME GUARDAuthentication use or not (0: false, 1: true)UseGameGuardAuth=0# AddGameGuardName## GAME GUARDAuthentication, V2.5Starts not to useAddGameGuardName=libggauth2.so.0# GameGuardInterval## GAME GUARDAuthentication invitation gap (msec)## GAME GUARDAuthentication skill implementation timeon/off: GameGuardInterval=0GameGuardInterval=60000NoResponseTimeout=180000[DBAgent]; DBAgent IPAddr= 218.153.8.38; DBAgent PortPort=38181[GlobalMgrSvr]; GlobalMgrSvr IPAddr= 218.153.8.38; GlobalMgrSvr portPort=38170

    Note: The template document passesgen_config.shScript processing produces the official operation the configuration files.

D、/home/cabal/gen_config.sh ExecutionExecution/home/cabal/gen_config.sh.Based on/etc/cabal/server_lisIn server table of

contents, in /etc/cabal/Under folder automatic production official operation server environment establishment document (ini). In addition, production /etc/init.d/Server name execution document.

Page 29: Cabal Server Guide by Fatal

#/home/cabal/gen_config.shFollowing establishment document is on the official operation server document, the

execution/home/cabal/gen_config.shAfter.Again carefully confirmed each document establishes whether completely.DBAgent_XX.ini (XX: Each server group sequence number )GlobalMgrSvr.iniGlobalDBAgent.iniLoginSvr_XX.ini (XX: LoginSvr The server integer, has nothing to do with with the

server group serial number.)WorldSvr_XX_YY.ini (XX: Server group serial number YY: Channel serial number)<Reference> If revised /etc/cabal/server_list DAEMONThe name, carried out /home/cabal/gen_config.sh, Revision/etc/cabal/server_listLatter must have to carry out once more/home/cabal/gen_config.sh

E、GlobalMgrSvr Server(DAEMON) AuthenticationExecutionGMSBefore, needGMSAuthentication code.The authentication method

isESTCarries on, the new server establishes when applies; (Had defined the new server start must passEST)

FAbout server (DAEMON)Wrong, must establish the productionCore DocumentIn order to understand each service machine dawdle machine reason, must

establish the productioncoreDocument./etc/init.d/functions [[的]] DAEMON The function, may discover 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”        # Echo DEMON        [ “$ {BOOTUP:-}” = “verbose” - a - z “$LSB”] && echo - n “$base”        # 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 "

Following part$nice initlog $INITLOG_ARGS - c “runuser - s /bin/bash - $user - c \ “$* \ ""

Revises 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.5Server(DAEMON) ExecutionCarries out various serversDAEMON:

# service DAEMONName startEx) service WorldSvr_01_01 start    Service LoginSvr_01 start

Page 30: Cabal Server Guide by Fatal

The unification carries out various serversDAEMON:# service cabal start

5.1.6 ACE LibraryAll servers all needACEUses now is5.5.1Edition.Inspects on the server whether has/usr/lib/libACE.so.5.5.1 Document.After the installment service end procedure, can the automatic setup.5.1.7 Advancement soft link hypothesis The actual server, is links the server name use

# 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 System service end installment5.2.1 Movement inwindowsSystemcabalService end procedure introductionAccount number database, game database serverRenews the server:P3 and update web(info server)Renewal server integrant part.■ Client-SideUpdater (Cabal update file download application)■ Server-SideUpdate web Server (info server)- urlinfo.ini (environment File), fileinfo.dat (Recording documentCRC)- UpdateFileName.torrent (Torrent File)- setup.exe.torrent (The peaceful justification uses Torrent File)P3 Server- BitTorrent Tracker- BitTorrent File Seeder- P3Register (Update File Register Application)5.2.2 Database serverThe game database server explained sees "GameDB Explains the handbook";The account number database showed the South Korean government has not

provided;5.2.3 Renews the serverinfo serverAConfirmed on the server installsIISServerBWill renew the document sumurlinfoThe document duplicateshttpUnder the table

of contents, the construction is as follows:Pds/Table of contents:- setup.exe.torrent Document( Must have installs the document.)Update/Files/Pure/Table of contents:- urlinfo.ini, FileInfo.dat Document(The renewal document information with has

recorded the documentCRC Document)Pds/P3_SerialNumber/- If P3Server Having3Taiwan, can have P3_1, P3_2, P3_3Folder, Renewal

documentupdate_123.dat, update_124.dat, update_125.dat Must in P3_1, P3_2, P3_3Folder. Although the document name is same, but the content is different.EX)Pds/P3_1/update_123.torrnet, update_124.torrent, update_125.torrentPds/P3_2/update_123.torrnet, update_124.torrent, update_125.torrent

Page 31: Cabal Server Guide by Fatal

Pds/P3_3/update_123.torrnet, update_124.torrent, update_125.torrent

Note: P3_1/, P3_2/, P3_3/In has the content differentlytorrent Document, P3_1/In has the direction P3Server 1Content,P3_2/In has the directionP3Server 2Content.

CThe confirmation link is correct:Turns on the homepage browser, inputs following address in the address fence.http://update DNS Name/Update/Files/Pure/urlinfo.iniEX)http://update.cabalchina.com.cn/Update/Files/Pure/urlinfo.iniThe downloading window appearance, explained might establish normally.D、urlinfo.ini Document content annotation

First in; updateurDownloading, when defeat inupdateurl2Downloading.

; updateurlPlace CDN,updateurl2 Handing upEST.; setupfileYes cabal_downloaderCannot use p3When downloading, uses in way which downloads.; updateurl = http://info.cabalchina.com.cn/Update/Files_1/; updateurl = http://info.cabalchina.com.cn/Update/Files_3/[urlinfo]updateurl = http://info.cabalchina.com.cn/Update/Files_2/   : Downloading renewal correlation content placesetupfile = http://info.cabalchina.com.cn/pds/  : Downloads the peaceful justification the address.torrentfile = http://update.cabalchina.com.cn/Pds/     : DownloadingTorrent File Address.[updateinfo]  Renewal document content.updatemax=10   FileSeeder (BitTorrent_UpdateSvr) Most large number.updateindex=4   Now effective FileSeeder (Update File Number)testmax=3   test Server biggest File Seedertestindex=1 test server Effective FileSeeder (Update File Number)p3count=3    Service P3Server numberp3subdir=P3_  Folderp3SubDir1=P3_1 P3Folder matches which with the server. P3countIf is 2 Read-only P3SubDir2.p3SubDir2=P3_2p3SubDir3=P3_3[101]   100The above starts isTest server With document.version=1512    ;Document edition (update_1512.dat)subversion=0    ; SERVERDocument editionDirectMode=0  ;Downloading way (0ForcdnWithp3Mix pattern,1ForcdnAlone)

Page 32: Cabal Server Guide by Fatal

torrenturl= http://update.cabalchina.com.cn/Pds/update_1512.dat.torrent ; Torrnet Document receive address.fileurl= http://info.cabalchina.com.cn/pds/update_1512.dat   ;Renewal document receive address[1]   ; INDEXFrom1Starts is when the official service needs renewal document numberversion=1350subversion=1DirectMode=0torrenturl= http://update.cabalchina.com.cn/Pds/update_1350_1.dat.torrentfileurl= http://info.cabalchina.com.cn/pds/update_1350_1.dat[2]version=1460subversion=1DirectMode=0torrenturl= http://update.cabalchina.com.cn/Pds/update_1460_1.dat.torrentfileurl= http://info.cabalchina.com.cn/pds/update_1460_1.dat[3]version=1500subversion=0DirectMode=0torrenturl= http://update.cabalchina.com.cn/Pds/update_1500.dat.torrentfileurl= http://info.cabalchina.com.cn/pds/update_1500.dat[4]version=1508subversion=0DirectMode=0torrenturl= http://update.cabalchina.com.cn/Pds/update_1508.dat.torrentfileurl= http://info.cabalchina.com.cn/pds/update_1508.dat

5.2.4 Renews the serverP3 ServerARenewal document uploading needsIIS FTPEstablishmentIn order to upload the renewal document, establishmentIIS FTP.[[把]]HOME DIRECTORYEstablishes inc:\Inetpub\ftproot\. ( Other places also may)Renewal document uploading in c:\Inetpub\ftproot\update\ Under folder.P3Register.exe Procedure FTP path Wants and the uploading folder way (c:\

Inetpub\ftproot\update\)Consistent.B、CabalP3Component.zip Compression decompressionCabalP3Componet.zipIn D:\In decompresses.After decompression D:\CabalP3Componet\  DIRECTORYNext has

followingDIRECTORY.▪ Server FolderTracker Program (P2P Server)▪ Client Folderp2p Client (File Seeder)▪ UpdateFile FolderUpdate File Is at folder▪ TorrentFile FolderAboutUpdate File[[的]] Torrent The document is at folder▪ TrackerInfo FolderTrackerPreservation client Information place(Option)▪ Program Folderpython-2.3.4.exe ( In order to revolveTrackerMust establishPYTHON.)

Page 33: Cabal Server Guide by Fatal

maketorrent.exe ( EstablishmentUpdate FileCorrelation TorrentDocument procedure)

srvany.exe ( General Form The procedure registersSERVICEProcedure)instsrv.exe ( RegisteringSERVICEProcedure)▪ BatFile FolderTracker With File SeederNeedsRegistry Establishment bat, Reg Document and so

on▪ AutoRegister Folderp3serviceregister.exe (UploadingUpdateThis procedure can registerSERVICE)P3Service.ini ( Above procedure reference environment document)- Log Folder (P3ServiceRegister.exe.log: Log File)C、python-2.3.4 InstallmentEstablishmentTrackerCorrelationWINDOWWith python Procedure.After the establishment confirmed whether has C:\Python23\python.exe.D[[、把]]srvany.exe, instsrv.exeDuplicates c:\winnt\system32\ In order to register eachP3Procedure,srvany.exe, instsrv.exeDuplicates c:\winnt\

system32\;ERegisters each P3 ProcedureSERVICE[[ 把 ]]BitTorrent_P3Register, BitTorrent_Tracker, BitTorrent_UpdateSvr1~10

RegistersSERVICE;ExecutionD:\CabalP3Component\BatFile\ServiceRegister.bat;Order language form : instsvr “SERVICE[[名]]” “Execution document”Establishment“BitTorrent_name” [[ 的 ]]SERVICE. The execution procedure is

srvany.exe.D:\CabalP3Component\BatFile\ServiceRegister.bat Contentinstsrv “BitTorrent_P3Register” “C:\WINNT\system32\srvany.exe”instsrv “BitTorrent_Tracker” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr1” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr2” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr3” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr4” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr5” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr6” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr7” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr8” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr9” “C:\winnt\system32\srvany.exe”instsrv “BitTorrent_UpdateSvr10” “C:\winnt\system32\srvany.exe”

F、Tracker SERVICEHypothesis.ExecutionD:\CabalP3Component\BatFile\Torrent _Tracker.regDocument.

Form)- AppDirectory: Tracker Execution document(bttrack.py Is at folder)- Application: EstablishmentPYTHONExecution document- AppParameters: Tracker ParameterEX) D:\CabalP3Component\BatFile\Torrent _Tracker.reg ContentWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ BitTorrent_Tracker \ Parameters]“AppDirectory " = " D:\ \ CabalP3Component \ \ Server”“Application " = " C:\ \ Python23 \ \ python.exe”“AppParameters " = " D:\ \ CabalP3Component \ \ Server \ \ bttrack.py --port

Page 34: Cabal Server Guide by Fatal

6969 --dfile \ “D:\ \ CabalP3Component \ \ TrackerInfo \ \ dstate \” --allowed_dir \ “D:\ \ CabalP3Component \ \ TorrentFile \” --reannounce_interval 500 --yn_infoip \ “218.232.117.245 \ ""

Execution regedit In[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \

BitTorrent_Tracker]Confirmation.G、BitTorrent_UpdateSvr SERVICE (File Seeder) Establishment.ExecutionD:\CabalP3Component\BatFile\FileSeeder.reg Document.General operation 10[[ 个 ]]SERVICE(BitTorrent_UpdateSvr1~10), Also may

increase suitably. Form)- AppDirectory: Seeder Execution document(btdownloadheadless.exeIs at folder)- Application: Seeder Execution document Path- AppParameters: Seeder Parameter- Format: Appparameters FormEX) D:\CabalP3Component\BatFile\FileSeeder.reg ContentWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ BitTorrent_UpdateSvr1 \ Parameters]“AppDirectory " = " D:\ \ CabalP3Component \ \ Client”“Application " = " D:\ \ CabalP3Component \ \ Client \ \ btdownloadheadless.exe”“AppParameters " =”--responsefile \ “D:\ \ CabalP3Component \ \ TorrentFile \ \ setup.exe.torrent \” --saveas \ “D:\ \ CabalP3Component \ \ UpdateFile \ \ cabal0816.exe \” --max_uploads 500 --min_uploads 50 --display_interval 1 --max_upload_rate 3000 "“Format " =”--responsefile \ “{0} \” --saveas \ “{1} \” --max_uploads 500 --min_uploads 50 --display_interval 1 --max_upload_rate 5000 "….

H、BitTorrent_P3Register SERVICEEstablishmentExecutionD:\CabalP3Component\BatFile\P3Register.reg Document.

Form)- AppDirectory: P3Register Execution document(P3Register .exeIs at folder)- Application: P3RegisterExecution document Path- AppParameters: Does not use.D:\CabalP3Component\BatFile\P3Register.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ BitTorrent_P3Register \ Parameters]“AppDirectory " = " D:\ \ CabalP3Component \ \ Program \ \ AutoRegister”“Application " = " P3ServiceRegister.exe”“AppParameters " = ""

I、D:\CabalP3Componet\Program\AutoRegister\P3Register.exe Establishment.P3Register.exeCyclical surveillance in P3Server FTP Root In updateFolder, if has

the renewal document to registerSERVICE,GuaranteeFile SeederPossession;■ p3serviceregister.exe

Page 35: Cabal Server Guide by Fatal

[update]The folder ending must by \ Conclusion.-Establishment IP = tracker [[的]]IP ( Mainly uses this localityIP)- FTP= D:\BitTorrent\Update\ : Must monitor folder way.(The renewal document must upload position)- UPPATH= D:\BitTorrent\UpdateFile\ :Duplication update Document folder way- TORRENTPATH= D:\BitTorrent\TorrentFile\ :Duplication torrentDocument folder way [File Server INFO]: FileSeeder Must refer to parameter(P3Register[[ 把 ]] updateThe document registersSERVICEWhen, in correspondingSERVICE AppParameter. ) - MINUPLOAD=50: Seeder Smallest uploading number- MAXUPLOAD=100  : Seeder Biggest uploading number- MINPORT=6881  - MAXPORT=6999: Seeder Useport Scope [6881 ~ 6999] - MAXUPRATE=5000 // Does not use.- SERVICENAME=BitTorrent_UpdateSvr : CorrespondingSERVICEName- SERVICECOUNT=10: SERVICE index- DISPLAYINTERVAL=1:Renewal ratio[Function]:

- AutoCopy=0  : Decided whether duplicates the renewal document otherP3Server.P3 When server for plural number, uploads completely can waste the time, therefore linksnetwork driveDuplicationPLAGP3Server 1When in has the renewal document, withNETWORK DRIVEPasses to the document otherP3Server

Page 36: Cabal Server Guide by Fatal

Note:FileSizeWhen big, uses separately P3 ServerWhen uploading, can spend the very long time.Must use when this skill in following[Option] In AutoCopyThe value changes1; 0Does not duplicate the renewal document, processes voluntarily.COUNT=3D_1= M:\Inetpub\ftproot\update (P3Server FTP Root/Update/ Folder)D_2= N:\Inetpub\ftproot\updateD_3= O:\Inetpub\ftproot\update- RegistType=0: 0 General renewal document, 1 Peaceful justification document

■ application method(1) Establishment INIWith P3ServerTallying.(WithCONTROLEstablishes in the

procedure, the server dawdle machine-hour may preserve)(2) Executive routine. (The confirmation hasauto service When, the cycle

monitors)(3) Procedure cycle inspection in FTP root In Update Folder, update_1.dat,

update_1.torrent, update_1.end, urlinfo.ini Document(4[[个]])All when, starts to renew.(4) After retrieves above the document, .dat With .torrentThe document

duplicatesupdate Path With torrent Path.(5) Confirmed other establishments, is left overEND, ini Document deletion.

Note:update The folder must empty continuously. Update_XX.dat, Update_XX.torrent Document number(XX)Must be consistent, Must record inurlinfo.iniOnly then may actuate normally.

(6) The procedure searches the record existing inSERVICE iniIn, byBitTorrent_UpdateSvr The name startsSERVICE[[ , 把 ]]version, subversion Value and record in urlinfo.iniThe in effective renewal document number carries on the contrast, first invalidSERVICEAfter stops,REGISTRYIn various parameter values after the existing renewal document name replace, make a fresh startSERVICE. IfUpdate_150.datWas value which just came up, could by the recordversion = 150이. If named update_152_2.datThe document comes up, is recordedversion = 150, subversion = 2.

JUses TrackerWhether the confirmation renewal document does use normallyInEXIP=IP[[ 的 ]] PCIn homepage, with correspondingipGoes in, may see the

following renewal document content.http://P3ServerIP:6969

Page 37: Cabal Server Guide by Fatal

If after renewal document uploading, BitTorrent_UpdateSvr SERVICEWhen again starts normally, in above form, renews the document correspondinglycomplete Turn-into 1Above, downloadTurn-into0Above. CompleteIf is not 1ExplanationFile SeederNormally has not registered the document.6Disposition explanation6.1 Linux Under the system serves the end advancement configuration files

In/etc/cabal In table of contents, 'Server type[_Serial number] .ini'YesCabalCorresponding service end configuration files;

EX)/etc/cabal/GlobalMgrSvr.ini/etc/cabal/WorldSvr_01_21.iniA、GlobalDBAgent - Execution document/usr/bin/GlobalDBAgent Direct useDBAgent When advancement, is generally is connected including the

above this advancement the soft link to carry on the control. [root@gms-sms ~] # ll /usr/bin/GlobalDBAgent lrwxrwxrwx 1 root root 16 Apr 26 09:11 /usr/bin/GlobalDBAgent ->

/usr/bin/DBAgent- Configuration files/etc/cabal/GlobalDBAgent.ini[DBAgent] DSN =In /etc/odbc.iniIn reads in must useDB.In /etc/odbc.ini The riga enters with

ACDBCorrelation name.[DSN] DBAddr, DBCatalog In actualLINUXIn does not use. WINDOWWhen, starts when

the daemon process, already registeredODBCAbove, only must refer then. LINUXWas

Page 38: Cabal Server Guide by Fatal

already in/etc/odbc.ini In registered.(Because not good registers from the procedure, after therefore registers beforehand starts.)

DBId = Must connectDB[[的]]ID DBPwd = DBPassword B、DBAgent - Execution document/usr/bin/DBAgent_XX The soft chained file is'DBAgent_Server serial number' Shape. -Configuration files/etc/cabal/DBAgent_XX.iniPort = For not with other server repetition, in38181~38189Between establishes. [DBAgent] ServerIdx = Takes down the corresponding server serial number. InDBAgent_XX.ini

In wants and XX The value is same. Other and GlobalDBAgent The establishment method is same. C、GlobalMgrSvr - Execution document/usr/bin/GlobalMgrSvr GlobalMgrSvrThe entire clothing only needs one, therefore uses

directly/usr/bin/GlobalMgrSvr; - Configuration files/etc/cabal/GlobalMgrSvr.ini [DBAgent] Addr = GlobalDBAgent [[的]]IP Port = GlobalDBAgent Port (Basic 38180) * [PCBangLK] * MIDEA WEB PCRoom authentication server (LK) Information * Addr = LK [[的]]IP * Port = LK Port (Basic 10004) * If does not use the Internet bar authentication, above value remains for the blank

may. D、LoginSvr - Execution document/usr/bin/LoginSvr_XX The soft link document is 'LoginSvr_Server serial number'. After the client side renews in /etc/cabal/LoginSvr_XX.ini After the revision client

side edition information, needs to guide the configuration files;# service LoginSvr_XX reload

- Configuration files/etc/cabal/LoginSvr_XX.ini[LoginSvr] GroupIdx = Takes down correspondinglyGROUPSerial number. InLoginSvr_XX.ini

Wants and XX The value is same. client_version=Input client side edition information.[GlobalMgrSvr] Addr = GlobalMgrSv[[的]]IP Port = GlobalMgrSvrPort (Basic 38170) E、WorldSvr- Execution document/usr/bin/WorldSvr_XX_YY

Page 39: Cabal Server Guide by Fatal

The soft link document is'[WorldSvr]_Server serial number_Channel' Form. -Configuration files/etc/cabal/WorldSvr_XX_YY.ini[NetLib] Port = In order to disagree other server repetition, in38111~38119Between

establishes. [WorldSvr] ServerIdx = Takes down the corresponding server serial number.In

WorldSvr_XX_YY.ini In wants and XX The value is same. GroupIdx = Takes down correspondinglyGROUP (Channel)Serial number.In

WorldSvr_XX_YY.ini In wants and YYThe value is same. AddGameGuardName =Filling in must real-timeLOAD[[ 的 ]]GAME GUARD

CSAuthenticationMODULE. (Only needs GAME GUARDAuthenticationLIBRARY V2.0) UseGameGuardAuth = [0: Off, 1: On] (GAME GUARD CSAuthentication On/Off,

RUN TIMESuitable) GameGuardInterval = GAME GUARD CSAuthentication[DBAgent] Addr = DBAgent_XX [[的]]IP Port = DBAgent_XX Port (38181~38189) [GlobalMgrSvr] Addr = GlobalMgrSvr[[的]]IP Port = GlobalMgrSvrPort (Basic 38170) F、ChatNode- Execution document/etc/cabal/ChatNode_XX.iniThe soft link document is'[ChatNode]_Server serial number' Form.-Configuration files[NetLib] Port = 38121[ChatNode]ServerNationIdx = Takes down the corresponding server serial number.In

ChatNode_XX.ini In wants and XX The value is same[DBAgent] Addr = DBAgent_XX [[的]]IP Port = DBAgent_XX Port (38181~38189) [GlobalMgrSvr] Addr = GlobalMgrSvr[[的]]IP Port = GlobalMgrSvrPort (Basic 38170)

6.2Essential document explanationA、/etc/cabal/server_list In the operation on the server is recording the daemon process detailed list which

must carry out. In/etc/init.d/cabal, /home/cabal/check_daemon.sh, /home/cabal/gen_config.shIn

refers to this document; B、/etc/logrotate.d/cabal Suitable interception'/var/log/cabal/Server name.log ' [[的]] logrotate Establishment

document;C、/home/cabal/backup_trc.sh Places on the server'/var/log/cabal/Server name_Time.trc' The document duplicates

the backup server;

Page 40: Cabal Server Guide by Fatal

Supplies the backup server to constitute time establishes;D、/home/cabal/check_daemon.sh In/etc/cabal/server_listIn daemon process, if inspects has the advancement not to

carry out, carries out it immediately;E、/home/cabal/dump_core.sh [[把]]WorldSvr Died when stays behind /home/cabal/core.pid Document read;The convenience examined'gdb /usr/bin/WorldSvr.debug core.xxxx' Script. F、/home/cabal/gen_config.sh [[ 把 ]]/etc/cabal/server_list In daemon process establishment

(/etc/cabal/*.ini)AutomaticGENERATINGScript G、/etc/cron.d/backup_trc Every day before dawn 1Execution/home/cabal/backup_trc.sh. H、/etc/cron.d/chk_cabal Each 1Minute execution /home/cabal/check_daemon.sh. Server dawdle machine-hour, in1In the minute starts. I、/etc/init.d/cabal_server '/etc/init.d/Links softly the daemon process name'Document J、/etc/init.d/cabal Read/etc/cabal/server_list Type, a execution'/etc/init.d/Server name'And so on.

EX)Makes a fresh start in this server all daemon process # /etc/init.d/cabal restart Identity service cabal restart

6.3 LOGDocument In/var/log/cabal Table of contents,By'Server type[_Serial number] .log'

Preservation. EX)/var/log/cabal/LoginSvr.log/var/log/cabal/WorldSvr_21_01.log

6.4 cabalAdvancement scriptUseRedhat linuxIn the system uses in the advancement control the script./etc/init.d In has with a server same script.EX)/etc/init.d/LoginSvr/etc/init.d/DBAgent_21In fact, the server all uses same /etc/init.d/cabal_server The document, chooses

daemon process opening and the closure in the script which controls with each kind of different advancement type.

# ll /etc/init.d/GlobalMgrSvr lrwxrwxrwx 1 root root 24 May  8 09:11 /etc/init.d/GlobalMgrSvr ->

/etc/init.d/cabal_server

Third, maintenance management<Reference>Misprinting mentalityafter ▪ the discovery breakdown, first confirms the fault point;▪ the platoon looks up the criterion, after is first soft hard;▪ looks up the network condition first, then looks up the service advancement;▪ found the breakdown question and the cause, the investigation procedure diary;after ▪ the elimination breakdown, the detailed record, takes the maintenance referenceFAQ;1. Tool introduction

Page 41: Cabal Server Guide by Fatal

CabalThe maintenance main tool includesServer Monitor 、 Cabal Manager 、 Mailing Manager、Log Viewerl、Program Browser;Here mainly introducedServer MonitorWithlog ViewerlTool:1.1 UseServer Monitor

Server Monitor Opens the clothing flow:A, Opens each regionServer MonitorTool; The input authorization account number

and the password register;

  B, InputCtrl+R Cancels electsrangeWithopenInputs the server and the channel

serial number scope clickapplyOpening service;

C, InputCtrl+G May carries on the condition hypothesis to each server and the channel;

D, In whichJOn behalf of green channel,AOn behalf of white channel,WarOn behalf of war channel,connMay establish the channel population upper limit;

E, In order to starting is can quickly and accurate, we have established the script starting way; Also presses downCtrl+Alt+AThe script form is as follows:

<server><srange> 1< /srange> ;Server scope<channel>    <range> 1< /range> ;Channel scope    <limit> 200< /limit> ;Population upper limit    <adult> 0< /adult> ;Channel attribute[0For green channel,1For white channel]</channel>      <channel>    <range> 2~6< /range>      <limit> 100< /limit>    <adult> 0< /adult></channel><channel>    <range> 7< /range>        <limit> 200< /limit>    <adult> 0< /adult></channel></server>

Page 42: Cabal Server Guide by Fatal

F, The hypothesis plays the script code click’save’Preserved code revision, according to’Execute’Carries out the code, cancels electsserver openThe speech can defer to the attribute which the code assigns to carry on the clothing operation.

G, After completes above operation, all number of people icon is completely a green, operates the clothing for the success, the use client side registers the test.

   Server Monitor Customs official's uniform flow:A, Right key clickLogin ServerIcon, choiceOFFClosureLogin Server。B, Knocks intoCtrl+RDetermined does not cancel electsOpenChoiceuse range

appointInput all servers and channel scope, clickapply。

C, Knocks intoCtrl+MChoicesend messageThe broadcast way to plays the family to transmit soon the customs official's uniform information.

D, Then usesshutdownThe broadcast way starts to confirm kicks the human.E, Finally usesforce shutdownThe broadcast way kicks all plays the family.

1.2 Log ViewerTool useA、Start MenuUses in with the server connection

Connect: With server connectionDisConnect: Cut-off and server connection

B, Option MenuAfter the connection activatesGetData & Create Macro Opens may gain the dataMARCOFoundation windowPreserved foundationMARCOMay reduce the heavy establishmentMARCOTrouble

C, ManufactureMarco

Page 43: Cabal Server Guide by Fatal

Click `New'Newly builtMacro

InSettingIn the window, the choice must inquireServer 、 ChannelWithCommandsThe inquiry category (the category detailed introduction may referCabal logSpecifications.xls) And may establish the condition, like time, roleIDThe number, registersIPThe address and so on, after designates, may preserve is specificMacroAccording toRunCarries on the inquiry, after completes, clickok;

Appears the following graphical representation:

Page 44: Cabal Server Guide by Fatal

Click `Save to Excel'Will output the content preservation will beExcelDocument.2. Routine maintenance

2.1Commonly used set of instructionsInspection network condition: (Green typeface this localityPCExecution, red

typeface long-distance server execution)ATest breakdown server network is whether normal:ping `IP' IPFor fault point server outside netIP;BExamination breakdown server network link situation:netstat - an (PS: Inspects whether has the public networkIPBetween the link as

well as each application server links whether establishes normally, monitors the port is whether correct;)

tcp        0      0 0.0.0.0: 38112               0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 32768               0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 38113               0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 2049                0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 38114               0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 998                 0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 199                 0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 111                 0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 982                 0.0.0.0: *                   LISTEN      tcp        0      0 0.0.0.0: 38111               0.0.0.0: *                   LISTEN      tcp        0    280 222.73.241.17: 38112         222.185.246.222: 41299      

ESTABLISHED tcp        0     90 222.73.241.17: 38114         220.152.161.139: 50032       

ESTABLISHED tcp        0     36 222.73.241.17: 38111         58.37.3.117: 1135            ESTABLISHED tcp        0     51 222.73.241.17: 38113         222.67.51.141: 1085         

ESTABLISHEDLISTENMonitors the port for the this aircraft,ESTABLISHEDIn order to succeed

establishes between two servers the links.

Page 45: Cabal Server Guide by Fatal

CExaminationcabalAdvancement whether normal operation:# ps aux |grep cabal (Demonstrates following content correctly for normally)cabal     2575 15.5 15.2 877360 633540?     S< l  Jun07 237:32 WorldSvr_01_01cabal     2610  7.0 12.6 754052 525112?     S< l  Jun07 107:46 WorldSvr_01_02cabal     2645  6.6 13.5 777028 560808?     S< l  Jun07 101:28 WorldSvr_01_03cabal     2680  6.0 12.7 753352 530284?     S< l  Jun07  91:50 WorldSvr_01_04DExaminationcabalThe advancement diary (above journal file explanation already

listed):#tailf /var/log/cabal/WorldSvr_01_01.log Real-time monitoring journal file output

content;#tail -50 /var/log/cabal/WorldSvr_01_01.log Examines the journal file final50Ok;#more /var/log/cabal/WorldSvr_01_01.log Take each frequency curtain as the unit

demonstrated the journal file all contents (space bar continues);#cat /var/log/cabal/WorldSvr_01_01.log |grep - i error Only inspects the journal

fileErrorOk;Note: The inspection journal file examinedErrorThe line primarily, the

judgment makes a mistake the reason.EExamination server movement which advancements?#catcabal (Script order identitycat /etc/cabal/server_list)WorldSvr_01_01WorldSvr_01_02WorldSvr_01_03WorldSvr_01_04F、CabalThe maintenance script showed that,All maintenances place various areas completely with the scriptmanager

server[[的]]/root/cabal/Under table of contents:

chnstop_all: Closes allcabalService advancement;chnstart_all: Opens allcabalService advancement;chnstart_world: Only opensWorld Server Advancement;chnstop_world: Only closesWorld Server Advancement;chnstop_chat: Only closesChat ServerAdvancement;chnstart_chat: Only opensChat ServerAdvancement;cmd[game/chat]_shell.sh: Entire clothing (game clothing/Chats the clothing) the

control command;scp[game/chat]_cmd.sh: Entire clothing (game clothing/Chats the clothing) to

duplicate the order;check_md5.sh: Verifies various servers advancement master routinemd5Value;check_proc.sh: Inspects each server the service advancement movement situation;All script use rule:The determination current directory is/root/cabal/The script carries out the form:./Script name [Parameter1] [Parameter2]The script renews one after another……2.2System maintenance contentASystem account

Examined whether there is increases the system account, and understands its origin and the use; Examined whether there is in the manager group increases the account, as well as whether there is does all account account strategy change;WindowsThe server operation is as follows:

Page 46: Cabal Server Guide by Fatal

Start -> Movement -> regedt32(Entrusts with the examinationsamKey value jurisdiction)Start -> Movement -> regedit (HKEY_LOCAL_MACHINE/SAM/SAM/DOMAIN/USERS/NAMES/)Start -> Movement -> compmgmt.msc (Opens inside the computer management window inspection the user jurisdiction and the strategy)LinuxThe server operation is as follows:cat /etc/passwdDoes the examination have is bigger than500User; (cabalUser exception)BMonitors the portExamined current opens the service port, searches the suspicious port;WindowsThe server operation is as follows:UseFportTool ornetstat - an |findstr “LISTEN” LinuxThe server operation is as follows:Hits directlyLISTENOrnetstat - ant |grep LISTENCDuty supervisor

Does the use duty supervisor, whether there is search the suspicious application procedure or the backstage advancement is moving, and observesCPUAnd memory running condition;WindowsThe server operation is as follows:Ctrl + Alt + Del Choicetask managerLinuxThe server operation is as follows:topThe order may examine the system mode,freeThe order may examine the system memory information.D, System service

Start->Procedure->Manages the tool->ServiceThe examination all system service, inspects whether has the strange unknown service;E, Start item

Does the inspection registry editor, whether there is search the suspicious procedure to add toWindowsIn start item;WindowsThe server operation is as follows:Start -> Movement -> regedit (HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/RUN)LinuxThe server operation is as follows:cat /etc/rc.localWhether there is carries out the script or the order existence unnecessarily.F, Diary analysis

WindowsThe server operation is as follows:

The examination event examines, inspection“System diary”“Security log”“Application procedure diary”In whether there is suspicious event or influence system performance event;

LinuxThe server operation is as follows:

cat /var/log/message |more Does the examination have the error messagecat /var/log/secure |moreDoes the examination have the invasion and the attack informationG, Shared directory

Page 47: Cabal Server Guide by Fatal

Inspection shared directory, closure all sharing;

H, Hard disk space

The inspection floppy disk space situation, carries on the backup to the essential content;

WindowsThe server operation is as follows:

The floppy disk information inquiry, my computer (the backup server for details sees "cabalServer backup plan")

LinuxThe server operation is as follows:

The server condition may inquire various areas monitoring service connection or usedf - hThe order examines the floppy disk condition,linuxThe next backup may use the script to complete.

IOnline population/Server monitoring

Using the tool real-time monitoring online population, each channel condition, transmits the demand promptly the announcement and the operation information.Discovers the population change exceptionally prompt recording and the report correlation person in charge and the department managers.

The server condition monitoring, each big area all has a set of monitoring platform.Inspects the key indicator the peak value and the average value, discovered processes exceptionally promptly.

3. Engine off maintenance

3.1System renewal

Look-up operation system system renewal, maintenance synchronization renewal;

3.2Safe scanning

The use virus and the wooden horse look up kill the software scanning memory and the hard disk, and maintains the viral storehouse the renewal.

3.3Operating record

The recording all maintenance project and the sequence of operation, like discover any unusual situation prompt report correlation person in charge and the department managers.

3.3Again opens the server

After completes all examinations, again opens this server.

3.4Database backup

AInspection database server backup situation

BInspects whether rests on the formulation the backup plan regular backup

CVerification backup package of and thing diary

DInspection newest backup package whether transmits to the backup server

3.5 Hardware and network

After again opens the server, examines each server the condition, if discovered has the server breakdown, prompt relationIDCThe engine room, the examination network and the hardware condition, and report the correlation person in charge and department manager.

Page 48: Cabal Server Guide by Fatal

4. Renewal flow4.1Renewal environmentThe earthshaking game renews according to the content mainly divides into the

server end to renew, the client side renews two parts, the logical diagram is as follows:

AService end renewal:-Involves the server is completelylinuxSystem;-Server type:World Server、Login Server、GMS Server、Chat Server、DBA Server;-ByManager ServerSynchronized renewal;-Carries out the script to carry on the renewal, the inspection and misprinting; -Before the renewal must close the service first the advancement, after the renewal

finished, needs again to open the system.BClient side renewal:-Involves the server iswindowsWithlinuxSystem;-Server type:P3 Server、info server、Login ServerAs well asCDN;-Renews the package to need to uploadCDNFinishes ahead of schedule;- Info serverLast modified: Assigns the client side downloading renewal document

localization and way 'P3WithCDN』;-The determination service end and the client side edition are consistent;

4.2Renewal principle

Page 49: Cabal Server Guide by Fatal

The renewal uses covers the original document the way before, therefore each time renews must the backup original procedure (in particular the binary sumdataDocument);

In front of the cover server document, guarantees the renewal document the accuracy (in particular configuration files);

4.3Service end renewal flowA、Measured the clothing renews

The renewal maintains in the engine off time carries on; Before the renewal the confirmation needs to renew which the procedure and are

the document? When renews? Whether needs to modify the configuration files? The South Korean government will be able in long-distanceITS Server

(222.73.241.209) Renews finished; According to renewal procedure and document revisionupdateScript:

Script in position:/root/cabal/

Script filename:update_xx ( xxExpresses the region)update_gz  update_sh  update_tj 

update_xn

Revision script content:vi update_sh

#sync_backup $server /usr/bin/LoginSvr ( Login ServerThe master routine like

renewal needs again to open this service)sync_backup $server /usr/bin/GlobalMgrSvr ( GMS ServerThe master routine like

renewal needs again to open this service)#sync_backup $server /usr/bin/DBAgent ( DBA ServerThe master routine like

renewal needs again to open this service)sync_backup $server /usr/bin/WorldSvr ( Game ServerThe master routine like

renewal needs again to open this service)#sync_backup $server /usr/bin/ChatNode ( Chat ServerThe master routine like

renewal needs again to open this service)#sync_backup $server /usr/lib/libggauth2.so.0

#sync_backup $server /usr/lib/libggauth2.so.50

#sync_backup $server /usr/lib/libggauth2.so.51

#sync_backup $server /usr/lib/libggauth2.so.52

#sync_backup $server /usr/lib/csauth2.cfg

#sync $server /etc/cabal/CashDBAgent.ini

#sync $server /etc/cabal/GlobalDBAgent.ini

#sync $server /etc/cabal/GlobalMgrSvr.ini

#sync $server /etc/cabal/LoginSvr.ini

#sync $server /etc/cabal/DBAgent.ini

#sync $server /etc/cabal/ChatNode.ini

#sync $server /etc/cabal/WorldSvr.ini

#sync $server /etc/cabal/Common.ini

#sync $server /etc/cabal/Data/

Note: Line of first belt“#”When is the annotation, the revision, according to the procedure and the document which must renew in

Page 50: Cabal Server Guide by Fatal

here carry on the hypothesis, also is an expert to good expert the first increase and the deletion“#”

Other contents do not need to carry on the change. Revises4After a local script, carries out the script in turn;

        Guarantees in/root/cabal/Under table of contents:cd /root/cabal/

        ./update_sh

        ./update_tj

        ./update_xn

        ./update_gzB、Manager ServerRenewal

After completes above step,4AreaManager ServerOn sumITSProcedure document synchronization.

Following step will renew the synchronizationReal Server:Registers various areasManager ServerHere (please consult by Shanghai "cabalThe

server information simple list") is the example: Enters the renewal script in the table of contents:

cd /root/cabal/

The correlation renewal needs to use the script to explain that,update_all: Synchronization allcabal Server;update_login: Synchronizationlogin Server;update_gms: SynchronizationGMS Server;update_dba: Synchronizationdba Server;update_chat: SynchronizationChat Server;update_world: SynchronizationWorld Server;update: Synchronized some server; (For example:update login01)check_md5.sh: Verifies various servers advancement master routinemd5Value;check_proc.sh: Inspects each server the service advancement movement

situation; Closes the server

Server Monitor The customs official's uniform, and kicks plays the family. In front of the synchronization revisesupdateScript: (RenewsWorld ServerFor

example)vi update Revision content withITSMoreover cancels following two annotations:ssh $server rm - f /home/cabal/core \ *

ssh $server rm - f /home/cabal/check_daemon.log

Closure service advancement:cd /root/cabal/

./chnstop_world (Closure allWorld ServerAdvancement) Synchronized renewal document to eachgame server:

./update_world

Inspection renewal document (compared to rightmd5Value whether consistent)cd /root/cabal/check/

Page 51: Cabal Server Guide by Fatal

./check_md5.sh

***** gms01 *****

local GlobalMgrSvr: 2a980a0a2e722c09abe5a65136896a77 /usr/bin/GlobalMgrSvr

gms01 GlobalMgrSvr: 2a980a0a2e722c09abe5a65136896a77 /usr/bin/GlobalMgrSvr

Opening service advancement(When maintenance again opens system)cd /root/cabal/

./chnstart_world (Opening allWorld ServerAdvancement)

./cmdgame_shell.sh reboot Again (opens allWorld ServerOperating system)cd /root/cabal/check/

./check_proc.sh Again after (opens the system to carry out, insistence allWorld ServerWhether the advancement does move)

C、Renewal flow chart

Page 52: Cabal Server Guide by Fatal
Page 53: Cabal Server Guide by Fatal

Opens the serverServer Monitor Operates the clothing.Plays the family to register normally, determined the renewal completes.

Note: If the need, may make the limit in the firewall, carries on internal test.4.4Client side renewal flow

A、UploadingCDN

Renewal package of documentupdate_xxx.dat ( xxxIn order to renew the edition

number, non-client side edition number) UploadingCDN[[的]]FTP 222.73.242.246 [[的]]updateTable of contents

ComputationdatDocumentmd5The value, uses the toolwinmd5And so on. Transmits above information to giveCDN: Mail'[email protected]';

'[email protected]'; '[email protected]'

The mail content writes plainly the renewal filename,uploadPosition,md5Value, renewal channel.For example:

Icust You are good!This renewal1Document:ftp://222.73.242.246/update/update_159.dat md5Valuece26bf9ac330f0335b8e546c2cf2daa4 update_159.datThe renewal channel ishttp://hnupdate.cabalchina.com/http://hdupdate.cabalchina.com/http://xbupdate.cabalchina.com/http://dbupdate.cabalchina.com/[[的]]pdsUnder table of contentsPlease as soon as possible renew Thanks!

Telephone confirmation renewal matters concerned,CDNAfter the renewal finished, can through the mail reply.

Tests separately: Four channel downloading addresses.For example:http://hnupdate.cabalchina.com/pds/update_159.dat

The link does not have the questionCDNThe synchronization is successful.BUploadingP3 Server

  The non-essential renewal, regards the renewal package of document size to decide, at present established provisionally the size surpasses6MBNeeds to renew.

CRenewalInfo Server After (all renewals finished)Info ServerMainly provides the client side edition to compare to with the

renewallanucherEdition.Obtainingurlinfo.iniThe document, is located generallyHTTPIssues under the table of

contentsUpdate \ Files \ pure \In table of contents.Content annotation:[download]MAX_FAIL_P3TRAN=10LIMIT_LOW_SPEED=5STANDARD_P3_SPEED=5

Page 54: Cabal Server Guide by Fatal

LIMIT_SPEED_MAX_COUNT=60ALLOW_SPEED_INC_VALUE=2DOWNLOAD_RETRY_COUNT=5CONNECT_WAIT_TIME=20[MODE]P3=1[version] #lanucher Editionlauncher=1.21[urlinfo]updateurl   = http://hdinfo.cabalchina.com/Update/Files_2/setupfile   = http://hdinfo.cabalchina.com/pds/torrentfile = http://hdinfo.cabalchina.com/pds/[updateinfo]updatemax   =10   updateindex =6 # Renewal document index The maximum value is10testmax     =3testindex   =0p3count     =4   p3subdir    =P3_p3SubDir1   =P3_1p3SubDir2   =P3_2p3SubDir3   =P3_3p3SubDir4   =P3_4[1] # Renewal document index numberversion=21subversion=1DirectMode=0torrenturl= http://hdinfo.cabalchina.com/pds/update_21_1.dat.zipfileurl= http://hdupdate.cabalchina.com/pds/update_21_1.datsubfileurl= http://hdupdate.cabalchina.com/pds/update_21_1.dat…………[6] # Renewal document index number The increase project number cannot be

bigger thanupdateindexSupposes the number.version=166 # Renewal document editionsubversion=0 # Sub-edition numberDirectMode=0 # Downloading way (0ForcdnWithp3Mix pattern,1ForcdnAlone)torrenturl= http://hdinfo.cabalchina.com/pds/update_166.dat.zip # Seed document in positionfileurl= http://hdupdate.cabalchina.com/pds/update_166.dat # The renewal document

downloads the positionsubfileurl= http://hdupdate.cabalchina.com/pds/update_166.datThe South Korean government can provide compares tourlinfo.iniDocument,

according to the above, renewalinfoServer establishment, increase and deletion project.Cannot directly use the document which the South Korean government provides.

Next basis actual situation hypothesisDirectMode。Regards the renewal package of document size to decide.

Renewal document index number quantity please refer to the South Korean government to giveurlinfo.ini。

RenewallanucherMethod:Will renew directly document (update.exe update.1stAnd so on)CoverHTTPUnder table of contentsUpdate \ Files_2 \Original document.

Page 55: Cabal Server Guide by Fatal

Note: Various areasurlThe address is not all same, therefore time renewal, the best method is in originalurlinfoIn the document revises.

DAdjustmentLoginSvrOn client side edition Registers various areasLoginSvr; EntryLogin Server Configuration files in table of contents:#cd /etc/cabal Edition configuration files:#vi LoginSvr_01.ini[NetLib]Port=38101SendMaxBufSize=65536ProcessDataLimit=10240MaxUserNum=20000WatchsNoPackLimit=10000SystemLogTTimeOut=100ReactorTimeOut=-1ConnectRetryTime=5000ConnectRetryNum=10LogLevel=3[LoginSvr]GroupIdx=1Timer=1:10000,2:5000,3:5000NoActiveLimitTime=40000client_version=1071 # Client side edition Revision andcabalmain.exeThe edition is same;[GlobalMgrSvr]Addr= 172.16.1.5Port=38170 Heavy load configuration files#service LoginSvr_01 reload

4.5Client side renewal flow chart

Page 56: Cabal Server Guide by Fatal
Page 57: Cabal Server Guide by Fatal

4.6 Database renewalDatabase renewalESTThe realization gives the detailed renewal method and the

execution usesSQLThe script, acts according to the renewal method generally showing, in turn in eachgameDBOr each areaAccountDBIn the inquiry analyzer carries outsqlScript then.

ESTIs can provide the online help in the renewal database the service, has question prompt relation department of commercial affairs Han to turn then.5. Data backup

The game overall data backup aspect, mainly includesServerEnd procedure as well as database two part of backup content:5.1Server end procedure backup:

First: The server end procedure backup is relatively simple, mainly is adopts engraves records the compact disc the form, after namely each time has the new edition server end procedure issue, it together with the client side, engraves together records the compact disc preservation.

Next: When each time renews the service end procedure, must the backup original old procedure to the local backup table of contents in, in order to have time the problem may restore promptly.

Finally: Completes around the corresponding all renewals the edition crabbing.5.2Database backup

Cabal DBConstruction:Game DB The main database (recording plays family in game role information and

so on)Account DB The account number database (recording plays family user information

and so on)Shop DB Commercial city databaseAccording to eachDBData important degree, eachDBThe concrete backup situation

is as follows:5.2.1 Game DB Backup

  A、Game DBThe data quite is important, generalGame DBThe data is at the hard

disk needs to doraid 1Redundant backup; In physics makes the redundant backup to the data, because is advantageous causes the data missing after the hardware floppy disk breakdown the data to restore the work;

BUses firstSQLThe bringing database maintenance plan, distinguishes rightlyDBCarries on the complete backup as well as the thing diary backup, the backup table of contents unification isD:\Sql _bak;

CUse synchronization backup software, each time backup data synchronization backup toBackup Server;

DEach week will be recent a backup the material to upload to the storage device or downloads to the company server on and engraves records the compact disc preservation.

5.2.2 Shop DB、Account DBBackup

Page 58: Cabal Server Guide by Fatal

(Because this in twoDBQuite is all important below, therefore suggests3Will the backup plan, which backup plan specifically use through the overall evaluation decision?)

    Account DBWithShop DBUses the same backup plan, following byAccount DBCarries on the introduction for the example Between server hard disk direct backup (method withGame DB)

  AWhen, erects the server, Account DBThe data is at the floppy disk needs to doraid

1Redundant backup; In because physics makes the redundant backup to the data to be advantageous after the hardware floppy disk breakdown causes the data missing the data to restore the work;

BUses firstSQLThe bringing database maintenance plan, distinguishes rightlyDBCarries on the complete backup as well as the thing diary backup, the backup table of contents unification isD:\Sql _bak;

CUse synchronization backup software, each time backup data synchronization backup toBackup Server;

DEach week will be recent a backup the material to upload to the storage device or downloads to the company server on and engraves records the compact disc preservation.   Database aggregated backup

AWhen, erects the server, Account DBThe data is at the floppy disk needs to doraid 1Redundant backup; In because physics makes the redundant backup to the data to be advantageous after the hardware floppy disk breakdown causes the data missing the data to restore the work;BUses the database aggregated construction, also may safeguard the data the security, simultaneously also may reduce single TaiwanAccount ServerThe load, reduces outside the plan the down time;CEach week will be recent a backup the material to upload to the storage device and downloads to the company server on and engraves records the compact disc preservation.

Fourth, earthshaking FAQ1. Server breakdownAAfter, the client side user registers is unable to demonstrate the server tabulation?Examinationserver monitorWhether starts to serve normally,server monitorWhether the tool does operate normally.

Page 59: Cabal Server Guide by Fatal

B, The client side user registers, is unable to connect the server?InspectionloginServer whether normal operation?GlobalDBAgent Server sumAccountDBLinks whether normally.

C, The client side demonstrated registers the server edition not to be right?Only then after the renewal maintenance, can appear this breakdown, the reason isloginIn server advancement configuration filesclient_versionField content and client side host execution documentcabalmainThe edition is not correct.

LoginSvr_01.iniIn documentclient_version=1104;D, The multi-group server simultaneously appears the service to stop the phenomenon

continuously?The judgment for plays the bit center breakdown which the server is at, according to the misprinting mentality, inspects the network condition first, then examination advancement movement situation.Also is inspects the bit center first the exchange module, may in the bit center module management, again open the exchange module, solves this problem.In confirmation bit center network normal situation: In row of Zha Meitai the bit server network condition, guarantees the network to be possible the normal work.Confirms in above step all normal situation, but also cannot connect the network, may relate the engine room examination mesh wire connection and the switchboard port.

E, Many or the single channel appears the breakdown?Many channel breakdown, now eachWorld ServerProvides continual4The channel service, after the determination is these channel server appears the breakdown, same looks up the network first, if outside the net does not pass, may passmanagerIn the server carries on the net connection, in the net does not pass the speech, might judge for the server already the dawdle machine or the network serves the interrupt, might long-distance connect on this server through the bit center administration module to examine, if already the dawdle machine, might again open this piece of server in the administration module.The single channel breakdown general system can automatic again open this channel, if is not good, may mount this server to carry on manually opens again.

F, Plays the family to reflect cannot carry on private chats or the trade union service?This service by chats the server to provide, the localization fault point server, carries on manually opens this advancement again, can solve.Must in guarantee the network normal connection in the situation.

G, Server MonitorDemonstration service normal work, but plays the family not to be able to register normally, alsologinThe population is unusual?If is the entire clothing all has this problem, inspects firstglobalDBAgentThe server condition is whether normal, the advancement service, the network condition, and examine the diary; WithaccountDBConnects whether normal and so on; Then examinedAccountDBThe server condition is whether normal,sqlService, network service, floppy disk space and so on.The individual server group has this problem: Examines this server groupDBAgentWith correspondenceGameDBServer.Inspection project according to misprinting mentality.

H, But plays the family to assign the stage prop to be unusual, touches the valuable box to be possible to see the stage prop not to be able to shift normally to the role body on?

Page 60: Cabal Server Guide by Fatal

Mainly isCashDBAengtThe server appears the breakdown to cause, carries on the inspection according to the misprinting mentality.

2. Client side breakdownFor details sees the official net(Increases gradually)

Fifth, reference option1. Reference documentscabal Logical organization analysis situs chart cabal Network architecture analysis situs chart GAME DB Explains the handbook Blade manual(IBMBit center administration module introduction)Bit server and bit center introduction reference:http://www-900.ibm.com/cn/support/viewdoc/uprosupport?pageid=0&category=2131&docordown=downLinux Study forumhttp://www.linuxfans.org/nuke/index.phphttp://bbs.linux.org2. Other explanations