完美服务端教程及翻译Word下载.docx
- 文档编号:22584652
- 上传时间:2023-02-04
- 格式:DOCX
- 页数:82
- 大小:155.05KB
完美服务端教程及翻译Word下载.docx
《完美服务端教程及翻译Word下载.docx》由会员分享,可在线阅读,更多相关《完美服务端教程及翻译Word下载.docx(82页珍藏版)》请在冰豆网上搜索。
mkfs.xfs/dev/sda1–f
mkfs.xfs/dev/sdc-f
Mountthepartitions
Gotocd/tmptocreateanewdirectoryforsdaandsdc.Issuethefollowingcommands:
转到cd/tmp,为sda和sdc创建新的路径。
输出如下命令
cd/tmp
mkdirsda1sdc
Mountthedirectoriescreatedbyexecutingthefollowingcommands:
通过执行如下命令挂载创建的路径
mount/dev/sda1/tmp/sda1
mount/dev/sdc/tmp/sdc
ExtractimagetotheManager’sharddisk扩展镜像文件到管理器的硬盘中
Gotothedirectorywheretheimageislocated.Runthiscommand–cd/dump.
转到镜像文件所在路径,运行如下命令cd/dump.
Dumpfoldercontainsthearchivedfilesforbillingandthegames.Thebilling-relatedarchivesarethefileswiththisfilename–OpenBeta_AU_*.Thegame-relatedarchivesaretheoneswithfilename–hw_game_*.Noticethatforeacharchivegroups,therearefileswithexportandrootontheirfilenames.Thearchivewithrootonthefilenameconsistsoffilesusedforsystemmanagement.Theonewithexportonthefilenameconsistsoffilesthatareusedforthesystemthatmanagesalltheothernon-diskservers.
Dump文件夹包含游戏文件和列表文件。
列表相关的文件名为OpenBeta_AU_*.游戏相关的文件名为hw_game_*.注意每个文档集合,在文件名上面都带有export和root(翻译的不准确)带root的文件名被系统管理器使用,带export文件名的文件被管理所有其他无盘服务器的系统使用
Copyingoffilesmaycreateinconsistenciesbetweenthefiles,tocheckthisissuethefollowingcommands:
拷贝文件的过程中可能产生不一致的情况,请使用如下命令校验完整性
cathw_game_root_dump.gz.md5
md5sumhw_game_root_dump.gz
Thisstepisoptionalandisusedonlytocheckthefiles.
这一步是附加的仅仅用来验证文件的完整性
Extractthearchivestothecorrespondingdirectoriesbyissuingthefollowingcommands:
通过使用如下的命令把文档扩展到相应的目录
zcathw_game_root_dump.gz|xfsrestore-/tmp/sda1
zcathw_game_export_dump.gz|xfsrestore-/tmp/sdc
Thisoperationshouldreturnthismessage:
RESTORESTATUS:
SUCCESS.Ifthisisnotthereturnmessage,redotheprocessfromthecreationofthepartitions.
这个操作应该返回这个信息:
RESTORESTATUS:
SUCCESS。
如果没有返回这个信息。
请从创建分区开始重新操作
ConfigurationoftheBootLoader(GRUB)配置引导
Aftertheextractionoftheimagefile,configurethebootloader.Todothis,followthecommandsbelow:
当提取了镜像文件以后,接下来配置引导。
按照如下命令操作
Typegrubtogototheinterfaceofgrub.输入grub跳转到grub界面
Typesetup(hd0)(hd0,0),andpressEntersetup(hd0)(hd0,0),按回车
Typequit.输入quit
Typereboot.输入reboot
Tocheckifthekernelinstalledistheonethat’sneeded,dothefollowingcommandsbeforerebootingthesystem:
检查安装的核心是否是我们需要的,重启前输入以下命令
cd/tmp/sda1/boot/grub
catmenu.lst
Onthisfile,theversionofthekernelshouldbeequalto2.6.17.11.management.1950.Again,thisstepisoptionalsothiscanbeskipped.
这一步中内核的版本应该是2.6.17.11.management.1950。
另外这一步是附加的,可以跳过
ReconfigureBIOS重新配置BIOS
Aftertherebootdothefollowing:
重启后做如下操作
Gotothe‘BIOSConfiguration’andchooseBootSequence.UncheckEmbeddedNIC1MBAVersion…optionandcheckHarddriveC:
.
跳转到‘BIOSConfiguration’选择BootSequence不检测EmbeddedNIC1MBAVersion…选项与检测HarddriveC:
Thengoto‘IntegratedDevices’,choosetheEmbededGBNIC1.ChangethevaluefromEnabledwithPXEtoEnabledwithoutPXE.
调转到‘IntegratedDevices’,选择EmbededGBNIC1.改变值EnabledwithPXE成EnabledwithoutPXE.
SaveChangesandExit.Theserverwillreboot.Thedefaultpasswordofrootinthisserveris1234.
保存并推出服务器会重启root默认的密码在这个系统中是1234
ConfigureBackupandDatabaseServer配置备份服务器和数据库服务器
ToconfiguretheBackupServer,theusershoulddothefollowingsubtasks:
要配置备份服务器需要做如下的事情
RAIDConfiguration配置
BMCConfiguration配置
BIOSConfiguration配置
ServerSystemInstallation服务器系统安装
ConfigurationoftheBootLoader系统引导配置
ReconfigureBIOStobootfromharddisk从新配置BIOS使从硬盘启动
RAIDConfiguration配置
TheprocedurefortheconfigurationoftheRAIDforthisserverisprettymuchthesameexceptthatonlytwovirtualdirectoriesarecreated–swapandexport.Justthesameswapwilluse4096MBspaceandtherestofthefreespaceisgoingtobeusedbytheexport.
这个服务器RAID的配置和原来一样只是只有两个虚拟路径swapandexport.。
和原来一样swap使用4096MB剩下的作为export.
BMCConfiguration
TheconfigurationofBMCisbasicallythesameasDRACsinceitservesthesamepurposeonlythatBMCcannotbeaccessedusinganexternalIP.Changethefollowingselectionstothecorrespondingvalues:
BMC的配置基本和DRAC相同,因为都是为了相同的目的,只是BMC不能通过外部IP控制。
改变如下的参数设置成相应的值
IPMIoverLAN-On
NICSelection–Shared
LANParameters:
EthernetIPAddress(specifytheinternaladdressoftheBMCwhichisequaltothex.x.x.132forBackupandx.x.x.131forDatabase指定BMC的内部地址x.x.x.132用作备份x.x.x.131用作数据库)
HostNameString(input‘Backup’forBackupand‘Database’forDatabase输入‘Backup’和‘Database’对应Backup和Database)
LANUserConfiguration:
Username–defaulttoroot
Password:
<
inputpassword>
密码
ConfirmPassword:
Note:
Whiledoingtheconfiguration,takenoteoftheIPaddressesthatarebeingassignedtotheservers;
thesewillbeneededlaterinthemodificationoftheXML.
注意:
当配置的时候记下被分配的IP地址将在修改XML的时候使用
BIOSConfigurationBISO配置
ConfigurationoftheBIOSforBackupandDatabaseServerfollowsthesameprocedureastheoneusedinManager.
Afterreboot,pressF2togototheBIOSConfigurationScreenanddothefollowing:
Goto‘MemoryInformation’andchoose‘SystemMemoryTesting’.SetthevalueofthistoDisabled.
Goto‘BootSequence’.UncheckeverythingexceptEmbeddedwithNIC…
Goto‘IntegratedDevices’anddothefollowing:
a.SetthevalueoftheEmbeddedNIC1enabledwithPXEtotrue.
b.TakenoteoftheMACAddressesofGbNIC1andGbNIC2.TheseMACAddresseswillbeusedtoupdatetheXMLfile.Editthe‘IDECD-ROMControllerset’toOff.
Goto‘SerialCommunication’setthevaluetoOnwithoutConsoleRedirection.
Goto‘ExternalSerialConnector’settoRemoteAccessDevice.
Goto‘SystemSecurity’settoACPowerRecoveryOn.
Goto‘ReportKeyboardErrors’settoDonotReport.
SavetheChangesandExit.
EdittheXMLtoallowtheManagertoreachtheotherserversinthenetwork2耀XML以便使Manger服务器能够找到网络中的其他服务器
Intherootfolderincnetdirectory,configfeilvbinfoldercontainsfeilvbin.xml,afilebeingusedbytheManagertoaccessalltheserversintheGameServernetwork.ThisXMLfilehasbeencustomizedtofittherequirementsofLU!
PH.Toeditthefile,followtheproceduresbelow:
在cnent/root、configfeilvbin路径下包含feilvbin.xml,这个文件被Manger服务器使用来管理游戏网络中的所有服务器。
这个XML文件可以自定义以便适合LU的要求,编辑这个文件,按照如下步骤
1.Movethefiles–packageandtheXMLfromcnettotherootdirectorybyfollowingthe
procedurelistingbelow:
把文件包和XML配置文件从cnet目录移动到root目录下,按照如下步骤操作
a.CopythenewpackagefromVMWarePC(laptop)
从VMWarePC(laptop)虚拟机中复制新的文件包,输入如下命令
scproot@VMWareIP:
export/cnet.feilvbin.tar.gz/root
Supplythetherootpassword输入root命令
b.IftheManagerdoeshaveanIPyet,runthiscommand:
如果管理服务器还没有设置ip运行下面的命令进行设置
ifconfigeth0IP
whereIPistheIPAddressoftheManager.这里的ip是管理服务器的ip
c.Extractthecnet,feilvbinfolderusingthiscommand:
使用如下命令解压cnet,feilvbin文件夹
itar–zxvfcnet.feilvbin.tar.gz–uncompressthecnet.feilvbinfolder.
解压文件夹
d.Gototheextracteddirectoryandcopythearchivetotherootdirectory.
转到解压的目录下拷贝这些文档到root目录下,执行如下命令来实现这个操作
cdcnet.feilvbin
cpcpackage.feilvbin.tar.gz/root–mustbein/root/cnet.feilvbin/configfeilvbindirectory-必须拷贝在/root/cnet.feilvbin/configfeilvbin路径中
e.Gotothenewdirectoryofthearchiveandextractthearchive.
转到文档的当前路径下解压文件包使用如下命令操作
cd
tar–zxvfcpackage.feilvbin.tar.gz
f.Movethepackagetothecpackagedirectory.把文件包移动到cpackage目录下
使用下面命令执行此操作
mvcpackage.feilvbincpackage
g.Editthescriptthatmountsthenon-diskserverstotheManagerbyrunningthiscommand:
通过下面的命令编辑挂载无盘服务器的脚本文件
editremount.sh
Removetheserversthatdonotbelongtothegroup.Notethatthisscriptcanbefoundatrootcpackage/tool.
删除不属于这个集群的服务器。
注意:
这个脚本文件可以在rootcpackage/tool.路径下找到
h.Editfeilvbin.xmlandinputthenecessaryvalues.RefertothedocumentationoftheXMLtodeterminethesefields.
编辑feilvbin.xml文件输入必要的信息参考XML文档来确定需要修改的区域,使用如下命令编辑文件
vifeilvbin.xml
2.Afterreboot,executethefollowingcommands:
重启后执行下面的命令
cd/etc/sysconfig/network-scripts/
mvifcfg-ppp0ofcg-pp0.old
ThisisusedtodisableVPNaccess.ForLU!
setup,thismaybeskippedsinceVPNwillnotbe
used.这个是用来禁用VPN的,对于LU来说这一步可以跳过因为VPN并没有使用到
3.Installthepackagebyexecutingthiscommand通过下面的命令安装软件包:
/packagefeilvbin.xmlinstall.
4.ReboottheServer.重启服5.务器
ServerSystemInstallation服务器系统的安装
Aftertheconfigurationoftheserver,thesystemwillnowbeinstalled.Afterreboot,logintotheserverusingrootandcreatethepartitionsandformatthedirectoriesofbothDatabaseandBackup:
服务器配置完了以后,系统也就安装好了。
重启以后,使用root账号登陆服务器并创建分区和格式化数据库路径和悲愤路径
SincebothBackupandDatabasehaveonlytwopartitions–swapandexport.Themappingofthevirtualdirectoryisspecifiedbelow:
因此数据库和备份只有两个分区swap分区和export分区。
虚拟路径的映射说明如下所示
sda–swap
sdb–export
Formatthedirectoriesusingthefollowingcommands:
使用如下命令格式化虚拟路径
ForDatabaseServer:
对于数据库服务器来讲使用如下命令
rlogindatabase
mkswap/dev/sda
mkfs.xfs
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 完美 服务端 教程 翻译
![提示](https://static.bdocx.com/images/bang_tan.gif)