完美服务端教程及翻译.doc_第1页
完美服务端教程及翻译.doc_第2页
完美服务端教程及翻译.doc_第3页
完美服务端教程及翻译.doc_第4页
完美服务端教程及翻译.doc_第5页
已阅读5页,还剩54页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

sda root sdb swapsdc exportIf there are no partitions, proceed to the next step.如果没有分区 作如下操作Run fdisk /dev/sda to create partition on the first virtual directory. 运行 disk /dev/sda在第一个虚拟路径路径上创建分区i. Press p to check the original partition of the directory. 按p检查路径的源分区ii. Press n to create a new partition.按n创建新的分区iii. Press p to create a primary partition. Press 1 to use the default partition value.按p创建主分区 按1使用默认的分区值iv. Use default value and press Enter twice. Press p again to view created partition. This should display the device boot /dev/sda1.使用默认值并且按回车两次。再次按p显示创建的分区,v. 这个时候应该显示驱动器:boot /dev/sda1.vi. Press w to save the changes in the partition table.按w保存分区表的修改Format swap by executing this command mkswap /dev/sdb.通过使用命令:mkswap /dev/sdb.格式化交换分区swapFormat 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 /tmp mkdir sda1 sdcMount the directories created by executing the following commands:通过执行如下命令挂载创建的路径 mount /dev/sda1 /tmp/sda1 mount /dev/sdc /tmp/sdcExtract image to the Managers 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 and 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 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文件名的文件被管理所有其他无盘服务器的系统使用Copying of files may create inconsistencies between the files, to check this issue the following commands: 拷贝文件的过程中可能产生不一致的情况,请使用如下命令校验完整性 cat hw_game_root_dump.gz.md5 md5sum hw_game_root_dump.gz This step is optional and is used only to check the files. 这一步是附加的 仅仅用来验证文件的完整性Extract the archives to the corresponding directories by issuing the following commands:通过使用如下的命令把文档扩展到相应的目录 zcat hw_game_root_dump.gz | xfsrestore - /tmp/sda1 zcat hw_game_export_dump.gz | xfsrestore - /tmp/sdcThis operation should return this message: RESTORE STATUS: SUCCESS. If this is not the return message, redo 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 go to the interface of grub.输入grub跳转到grub界面Type setup (hd0) (hd0,0), and press Enter setup (hd0) (hd0,0),按回车Type quit.输入quitType reboot.输入rebootTo check if the kernel installed is the one thats needed, do the following commands before rebooting the system:检查安装的核心是否是我们需要的,重启前输入以下命令cd /tmp/sda1/boot/grubcat menu.lstOn this file, the version of the kernel should be equal to 1.management.1950. Again, this step is optional so this can be skipped.这一步中 内核的版本应该是1.management.1950。另外这一步是附加的,可以跳过Reconfigure BIOS重新配置BIOSAfter the reboot do the following:重启后做如下操作Go to the BIOS Configuration 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 from Enabled with PXE to Enabled without 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 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 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.。和原来一样swap 使用 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控制。改变如下的参数 设置成相应的值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 Database输入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.注意:当配置的时候 记下被分配的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 Information and choose System Memory Testing. Set the value of this to Disabled.Go to Boot Sequence. Uncheck everything except Embedded with NICGo 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 update 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.Save 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 network. 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 directory 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 this 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 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. 转到文档的当前路径下 解压文件包 使用如下命令操作cdtar zxvf cpackage.feilvbin.tar.gzf. Move the package to the cpackage directory.把文件包移动到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 servers 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文档来确定需要修改的区域,使用如下命令编辑文件vi feilvbin.xml2. After reboot, execute the following commands:重启后执行下面的命令cd /etc/sysconfig/network-scripts/mv ifcfg-ppp0 ofcg-pp0.old This is used to disable VPN access. For LU! setup, this may be skipped since VPN will not be used. 这个是用来禁用VPN的 ,对于LU来说 这一步可以跳过 因为VPN 并没有使用到3. Install the package 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 directories 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 swapsdb exportFormat the directories using the following commands: 使用如下命令格式化虚拟路径For Database Server: 对于数据库服务器来讲 使用如下命令rlogin databasemkswap /dev/sdamkfs.xfs /dev/sdb exitFor Backup Server: 对于备份服务器 使用如下命令cp /sbin/mkfs.xfs /export/backup/sbin/rlogin backupmkswap /dev/sdamkfs.xfs /dev/sdb exitCheck if the partition exist, 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 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 11 u “root” p “password” power cycleThis command 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 should 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 complete.安装完成以后重新启动计算机Provide Access to the Game Server Setup给游戏服务器提供控制权支持的安装To 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文档)这个控制是通过这个网址提供的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-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.tar.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 the 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更新配置 并安装软件包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管理器和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 和 Billing数据库同时又提供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 configuration 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.界面将显示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: Rootiv. Cross out the Advanced Setting and set the following values for the partition.转到Advanced Setting并给这个分区设置如下参数Element Size: 64 MBRead Policy: Adaptive ReadWrite Policy: Write Backv. Cross out Initialize by pressing spacebar.通过按空格键 转到Initializevi. Create the next two partitions by going to Space Allocation under free space and press F2. Repeat steps iii to v. Use the following values for the corresponding partitions.转到Space Allocation ,接下来在剩余空间创建第二个分区按F2,重复3-5步骤,使用如下的数值调节相应的分区Swap:VD Size: 4096 MBVD Name: SwapExport:VD Size: whatever the remaining space is 剩余的所有空间VD Name: Exporte. Press Esc and click OK to save. 按ESC退出 点击OK保存f. Press CTRL+ALT+DEL to reboot the server. 按CTRL+ALT+DEL重启系统DRAC ConfigurationGo to the Remote Access Configuration by pressing CTRL+E after reboot.重启后通过按CTRL+E转到路由控制的配置界面Change the values of the following: 更改如下参数IPMI Over Lan OnNIC Selection Dedicated LAN ParametersEthernet IP Address (specify the internal IP the IDC 指定IDC的内部IP)Default Gateway (specify the internal IP of the gateway指定网关的内部IP)Host Name String (input Manager输入Manager)LAN User Configuration局域网用户配置Enter Username: rootEnter Password: 密码Confirm Password: 密码Press Escape and Save Changes and Exit. The server will reboot.按escape 保存更改并退出 服务器将重启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.注意:在配置期间纪录下被分配给服务器的IP地址,将在稍后的XML修改中使用BIOS ConfigurationAfter reboot, press F2 to go to the BIOS Configuration Screen and do the following:重启后 按F2进入BIOS配置屏幕 作如下操作Go to Memory Information and choose System Memory Testing. Set the value of this to Disabled.Go to Boot Sequence. Uncheck everything except Embedded with NICGo to Integrated Devices and do the following:Set the value of the Embedded NIC1 enabled with PXE to true.Take note of the MAC Addresses of Gb NIC1 and Gb NIC2. These MAC Addresses will be used to update 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.Save the Changes and Exit.Server System Installation服务器系统的安装After the configuration of the server, the system will now be installed. After reboot, login to the server using root and follow the procedures below to install:配置服务器以后,接下来就是安装

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论