完美服务端教程及翻译.docx

上传人:牧羊曲112 文档编号:5174378 上传时间:2023-06-11 格式:DOCX 页数:59 大小:169.10KB
返回 下载 相关 举报
完美服务端教程及翻译.docx_第1页
第1页 / 共59页
完美服务端教程及翻译.docx_第2页
第2页 / 共59页
完美服务端教程及翻译.docx_第3页
第3页 / 共59页
完美服务端教程及翻译.docx_第4页
第4页 / 共59页
完美服务端教程及翻译.docx_第5页
第5页 / 共59页
亲,该文档总共59页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《完美服务端教程及翻译.docx》由会员分享,可在线阅读,更多相关《完美服务端教程及翻译.docx(59页珍藏版)》请在三一办公上搜索。

1、FirewallPatehl Pach2 Pach3 Patch 4PAT CH SERVER GROUPGAME SERVE R GROUP 1ACCOUNT & BILLING SERVER GROUPTEST SERVER GROUPsda - root sdb - swap sdc - exportIf there are no partitions, proceed to the next step.如果没有分区作如下操作Run fdisk /dev/sda to create partition on the first virtual directory. 运彳亍 disk /d

2、ev/sda 在第一个 虚拟路径路径上创建分区i. Press p to check the original partition of the directory,按 p 检查路径的源分区ii. Press n to create a new partition,按 n 仓0建新的分区iii. Press p to create a primary partition. Press 1 to use the default partition value,按 p 仓0建 主分区按1使用默认的分区值iv. Use default value and press Enter twice. Pre

3、ss p again to view created partition. Thisshould display the device boot /dev/sdal.使用默认值并且按回车两次。再次按p显示创建的分 区,v.这个时候应该显示驱动器:boot /dev/sdal.vi. Press w to save the changes in the partition table.按 w 保存分区表的修改Format swap by executing this command - mkswap /dev/sdb.通过使用命令:mkswap /dev/sdb.格式化交换分区swapForma

4、t sda and sdc by executing these commands:通过如下命令格式化sda和sdc分区mkfs.xfs /dev/sda1 -fmkfs.xfs /dev/sdc -fMount the partitionsGo to cd /tmp to create a new directory for sda and sdc. Issue the following commands: 转到cd/tmp,为sda和sdc创建新的路径。输出如下命令cd /tmpmkdir sda1 sdcMount the directories created by executin

5、g the following commands: 通过执行如下命令挂载创建的路径mount /dev/sda1 /tmp/sda1 mount /dev/sdc /tmp/sdcExtract image to the Manager s hard disk扩展镜像文件到管理器的硬盘中Go to the directory where the image is located. Run this command - cd /dump. 转到镜像文件所在路径,运行如下命令cd /dump.Dump folder contains the archived files for billing a

6、nd the games. The billing-related archives are the files with this filename - OpenBeta_AU_ *. The game-related archives are the ones with filename - hw_game_*. Notice that for each archive groups, there are files with export and root on their filenames. The archive with root on the filename consists

7、 of files used for system management. The one with export on the filename consists of files that are used for the system that manages all the other non-disk servers.Dump文件夹包含游戏文件和列表文件。列表相关的文件名为OpenBeta_AU_ *.游戏相关的 文件名为hw_game_*.注意每个文档集合,在文件名上面都带有export和root(翻译的不准 确)带root的文件名被系统管理器使用,带export文件名的文件被管理

8、所有其他无盘服务器 的系统使用Copying of files may create inconsistencies between the files, to check this issue the following commands:拷贝文件的过程中可能产生不一致的情况,请使用如下命令校验完整性cat hw_game_root_dump.gz.md5md5sum hw_game_root_dump.gzThis step is optional and is used only to check the files.这一步是附加的仅仅用来验证文件的完整性Extract the arch

9、ives to the corresponding directories by issuing the following commands: 通过使用如下的命令把文档扩展到相应的目录zcat hw_game_root_dump.gz | xfsrestore - /tmp/sda1zcat hw_game_export_dump.gz | xfsrestore - /tmp/sdcThis operation should return this message: RESTORE STATUS: SUCCESS. If this is not the return message, red

10、o the process from the creation of the partitions.这个操作应该返回这个信息:RESTORE STATUS: SUCCESS。如果没有返回这个信息。请从创建分区开始重新操作Configuration of the Boot Loader (GRUB)配 置引导After the extraction of the image file, configure the boot loader. To do this, follow the commands below:当提取了镜像文件以后,接下来配置引导。按照如下命令操作Type grub to g

11、o to the interface of grub.输入 grub 跳转到U grub 界面Type setup (hd0) (hd0,0), and press Enter setup (hd0) (hd0,0)按回车Type quit.A quitType reboot.输入 rebootTo check if the kernel installed is the one that s needed, do the following commands before rebooting the system:检查安装的核心是否是我们需要的,重启前输入以下命令cd /tmp/sda1/b

12、oot/grubcat menu.lstOn this file, the version of the kernel should be equal to 2.6.17.11.management.1950. Again, this step is optional so this can be skipped.这一步中内核的版本应该是2.6.17.11.management.1950。另外这一步是附加的,可以跳过Reconfigure BIOS 重新配置 BIOSAfter the reboot do the following:重启后做如下操作Go to the BIOS Configu

13、ration and choose Boot Sequence. Uncheck Embedded NIC 1 MBA Version. option and check Hard drive C:.跳转到BIOS Configuration,选择 Boot Sequence 不检测 Embedded NIC 1 MBA Version选 项 与 检测Hard drive C:.Then go to Integrated Devices, choose the Embeded GB NIC1. Change the value fromEnabled with PXE to Enabled w

14、ithout PXE.调转到 Integrated Devices,选择 Embeded GB NIC1,改变值 Enabled with PXE 成 Enabled without PXE.Save Changes and Exit. The server will reboot. The default password of root in this server is 1234.保存并推出 服务器会重启root默认的密码在这个系统中是1234Configure Backup and Database Server配置备份服务器和数据库服务器To configure the Backup

15、 Server, the user should do the following subtasks:要配置备份服务器需要做如下的事情RAID Configuration 配置BMC Configuration 配置BIOS Configuration 配置Server System Installation 服务器系统安装Configuration of the Boot Loader 系统引导配置Reconfigure BIOS to boot from hard disk从新配置 BIOS 使从硬盘启动RAID Configuration 配置The procedure for the

16、configuration of the RAID for this server is pretty much the same except that only two virtual directories are created - swap and export. Just the same swap will use 4096 MB space and the rest of the free space is going to be used by the export.这个服务器RAID的配置和原来一样 只是只有两个虚拟路径swap and export. 0和原来一样 swa

17、p使用4096 MB剩下的作为export.BMC ConfigurationThe configuration of BMC is basically the same as DRAC since it serves the same purpose only that BMC can not be accessed using an external IP. Change the following selections to the corresponding values:BMC的配置基本和DRAC相同,因为都是为了相同的目的,只是BMC不能通过外部IP 控制。改变如下的参数设置成相应

18、的值IPMI over LAN - OnNIC Selection - SharedLAN Parameters:Ethernet IP Address (specify the internal address of the BMC which is equal to the x.x.x.132 for Backup and x.x.x.131 for Database 指定 BMC 的内部地址 x.x.x.132 用作备份 x.x.x.131 用作 数据库)Host Name String (input Backup for Backup and Database, for Databas

19、e 输入 Backup 和Database对应 Backup 和 Database)LAN User Configuration:Username - default to rootPassword: Confirm Password: Note: While doing the configuration, take note of the IP addresses that are being assigned to the servers; these will be needed later in the modification of the XML.注意:当配置的时候 记下被分配的

20、IP地址 将在修改XML的时候使用BIOS ConfigurationBISO 配置Configuration of the BIOS for Backup and Database Server follows the same procedure as the one used in Manager.After reboot, press F2 to go to the BIOS Configuration Screen and do the following:Go to Memory Information5 and choose System Memory Testing5. Set

21、 the value of this to Disabled.Go to Boot Sequence5. Uncheck everything except Embedded with NIC.Go to Integrated Devices and do the following:a. Set the value of the Embedded NIC1 enabled with PXE to true.b. Take note of the MAC Addresses of Gb NIC1 and Gb NIC2. These MAC Addresses will be used to

22、叩 date the XML file. Edit the IDE CD-ROM Controller set to Off.Go to Serial Communication set the value to On without Console Redirection.Go to External Serial Connector set to Remote Access Device.Go to System Security set to AC Power Recovery On.Go to Report Keyboard Errors set to Do not Report.Sa

23、ve the Changes and Exit.Edit the XML to allow the Manager to reach the other servers in the network2 耀 XML 以便使 Manger服务器能够找到网络中的其他服务器In the root folder in cnet directory, configfeilvbin folder contains feilvbin.xml, a file being used by the Manager to access all the servers in the Game Server networ

24、k. This XML file has been customized to fit the requirements of LU! PH. To edit the file, follow the procedures below:在cnent/root、configfeilvbin路径下包含feilvbin.xml,这个文件被Manger服务器使用来管理 游戏网络中的所有服务器。这个XML文件可以自定义以便适合LU的要求,编辑这个文件, 按照如下步骤1. Move the files - package and the XML from cnet to the root director

25、y by following the procedure listing below:把文件包和XML配置文件从cnet目录移动到root目录下,按照如下步骤操作a. Copy the new package from VMWare PC (laptop)从VMWare PC (laptop)虚拟机中复制新的文件包,输入如下命令scp rootVMWareIP:export/cnet.feilvbin.tar.gz /rootSupply the the root password 输入 root 命令b. If the Manager does have an IP yet, run thi

26、s command:如果管理服务器还没有设置ip运行下面的命令进行设置ifconfig eth0 IPwhere IP is the IP Address of the Manager.这里的 ip 是管理服务器的 ipc. Extract the cnet,feilvbin folder using this command:使用如下命令解压cnet,feilvbin文件夹itar -zxvf cnet.feilvbin.tar.gz - uncompress the cnet.feilvbin folder.解压文件夹d. Go to the extracted directory and

27、 copy the archive to the root directory.转到解压的目录下拷贝这些文档到root目录下,执行如下命令来实现这个操作cd cnet.feilvbincp cpackage.feilvbin.tar.gz /root - must be in /root/cnet.feilvbin/configfeilvbin directory 一必须拷贝在 /root/cnet.feilvbin/configfeilvbin 路径中e. Go to the new directory of the archive and extract the archive.转到文档的

28、当前路径下解压文件包使用如下命令操作cdtar -zxvf cpackage.feilvbin.tar.gzf. Move the package to the cpackage directory把文件包移动到U cpackage 目录下使用下面命令执行此操作mv cpackage.feilvbin cpackageg. Edit the script that mounts the non-disk servers to the Manager by running this command:通过下面的命令编辑挂载无盘服务器的脚本文件edit remount.shRemove the se

29、rvers that do not belong to the group. Note that this script can be found at root cpackage/tool.删除不属于这个集群的服务器。注意:这个脚本文件可以在root cpackage/tool.路径下找到h. Edit feilvbin.xml and input the necessary values. Refer to the documentation of the XML to determine these fields.编辑feilvbin.xml文件 输入必要的信息 参考XML文档来确定需要

30、修改的区域,使用如下 命令编辑文件vi feilvbin.xml2. After reboot, execute the following commands:重 启后执行下面的命令cd /etc/sysconfig/network-scripts/mv ifcfg-ppp0 ofcg-pp0.oldThis is used to disable VPN access. For LU! setup, this may be skipped since VPN will not beused,这个是用来禁用VPN的,对于LU来说这一步可以跳过因为VPN并没有使用到3. Install the p

31、ackage by executing this command 通过下面的命令安装软件包:./package feilvbin.xml install.4. Reboot the Server.重启服 5.务器Server System Installation服务器系统的安装After the configuration of the server, the system will now be installed. After reboot, login to the server using root and create the partitions and format the d

32、irectories of both Database and Backup: 服务器配置完了以后,系统也就安装好了。重启以后,使用root账号登陆服务器并创建分 区和格式化数据库路径和悲愤路径Since both Backup and Database have only two partitions - swap and export. The mapping of the virtual directory is specified below:因此数据库和备份只有两个分区swap分区和export分区。虚拟路径的映射说明如下所示sda - swap sdb - exportFormat

33、 the directories using the following commands:使用如下命令格式化虚拟路径For Database Server:对于数据库服务器来讲 使用如下命令 rlogin database mkswap /dev/sda mkfs.xfs /dev/sdb exitFor Backup Server:对于备份服务器 使用如下命令cp /sbin/mkfs.xfs /export/backup/sbin/rlogin backupmkswap /dev/sdamkfs.xfs /dev/sdbexitCheck if the partition exist,

34、type the command “cat /proc/partitions” (view the partitions in the server)如果分区存在就检查一下,输入命令“cat /proc/partitions”(查看服务器上的分区信息)Reboot the server.重新引导系统 也就是重启Edit the Non-Disk Servers 编辑无盘服务器For non-disk servers, only the BMC and the BIOS gets configured during setup. Refer to the configuration setup

35、for BMC and BIOS for Database and Backup. After the configuration, reboot the servers from the Manager window by issuing the command:对于无盘服务器来说,安装期间只有BMC和BIOS需要进行配置。参考前面的BMC的配 置 和数据库和备份服务器BIOS的配置过程。当配置完成以后,通过在管理器窗口中输入 如下命令来重启服务器ipmish -ip 192.168.1.111 -u “root” -p “password” power cycleThis command

36、will restart the server. To check if the server is already up, do the following: 这个命令将重启服务器,如果服务器已经启动,通过输入如下命令检查一下状态信息ping game 1 2 3, link, delivery,database, backuplogin into the server by typing rlogin game1type ifconfigtype ethtool eth0Publish the Game 发布游戏After setting up the server, the game s

37、hould now be installed. To install the game, issue this command on the Game Manager Server:建立服务器以后,接下来应该安装游戏了。要安装游戏在游戏管理服务器上面输入以下命 令cd packagepackage/feilvbin.xml gameinstall.Reboot the computer after the installation is complet。.安装完成以后重新启动计算机Provide Access to the Game Server Setup给游戏服务器提供控制权支持的安装 T

38、o provide client PCs access to the Game Manager, the certificates should be installed in these computers. Certificates have been provided by PW (refer to the cnet.doc in Appendix B). This access is through the web using this URL:要提供客户机对游戏管理服务器的控制,这些客户机应该安装授权证书。证书由PW完美世 界提供(参考索引B的cnnet.doc文档)这个控制是通过这

39、个网址提供的https:/gamemanagerIP/iweb/manageTo be able to activate this page on the Game server, add the settings to the environment variables in the profile (.bash profile). Do the following:为了能激活游戏服务器上的文件,需要设置一下属性文件的(.bash属性文件)环境变量, 按如下操作来执行vi .bash_profilePATH=$PATH:$HOME/bin:/usr/local/Jakarta-tomcat-

40、5.5.9/binExport JAVA_HOME=/usr/java/jdk1.5.0_05Log out to reload the system and use these variables.注销一下以便使系统重新读取环境变量,使之生效Remove the old java program and install the new java provided by PW.删除过时的java文件并安装PW提供的新版本的java文件cd /usr/mv java java.bakcd /root/cnet/feilvbincp java.tar.gz /usrtar zxvf java.ta

41、r.gzRun the Tomcat Java program:运行 tomcatcd /usr/local/jakarta-tomcat-5.5.9/bin./startup.shNote: The latest .bash_profile given by PW already contains this modification so this step can be skipped.注意:最新的.bash_profile属性文件已经由PW提供,并且包含了这个步骤的所有修改信息, 所有此步骤可以跳过II. AU Server GroupAU Server group contains t

42、he account and billing data as well as the web services that will be used for the game. To set up this server group, do the following:AU服务器集群既包含account数据库 和billing数据库的信息又提供WEB服务,要安装 这个集群要做如下事情Configure the AU Manager 配置 AU 管理器Configure AUTH 配置 AUTHUpdate configuration and install the package 更新配置 并安

43、装软件包Configure java in AUTH and AU Manager在 AUTH 和 AU 管理器中配置 java 环境Configure SSL 配置 SSLConfigure Hosts 配置 HostsSetup Account and Billing DB 安装 Account 和 Billing 数据库Configure tomcat 配己置 TomcatConfigure Account and Billing DB 配置 Account 和 Billing 数据库Reconfigure AU Manager and AUTH Servers重新配置 AU 管理器和

44、AUTH 服务器Check the connection of AUTH and the Account and Billing Database验证AUTH连接情况 和Account ,Billing数据库Configure the AU ManagerAU Manager is the server responsible in managing the Account and Billing DB as well as the web server. To configure the manager do the following:AU管理器是这样的一个服务器:既响应Account和B

45、illing数据库同时又提供WEB服务, 要配置管理器要作如下事情RAID Configuration RAID 配置DRAC Configuration DRAC 配置BIOS Configuration BIOS 配置Server System Installation服务器系统的安装Configuration of the Boot Loader 引导的配置Reconfigure BIOS to boot from hard disk 重新配置 BIOS 从硬盘启动RAID Configurationa. Press CTRL+R to load the RAID BIOS config

46、uration interface.CTRL+R加载RAID BIOS配置界面b. Select Controller 0. Press F2 then select Reset Config to delete the existing configuration.选择Controller 0,按F2选择Reset Config来删除存在的配置c. The interface will display No configuration present!. Press F2 and select Create New VD to create a new configuration.界面将显示

47、No configuration present!,,按F2并选择Create New VD创建一个新的配置d. The Virtual Disk Management screen will be loaded and do the following:虚拟盘管理器会被加载,作如下操作i. On the RAID Level field, choose RAID-1 and Press Enter.在RAID Level(RAID等级)区域选择RAID-1并按回车ii. Cross out the squares corresponding to the two drives in this partition by pressing space bar.The first drive is the root, second drive is the swap and the third is export.在这个分区下通过按空格键调节两个驱动器响应的方形区域,第一个驱动器作为root第二 个作为export.iii. First, set the Basic Settings for the Root.首先设置 Root.的 Basic SettingsRoot:VD Size: 10000 MBVD Name:

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号