




已阅读5页,还剩12页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
编编 号号 ITSM OMC 00 TP 三级 Word 文档模板 运维中心运维中心 版版 号号 V3 2V3 2 服务器操作系统安装指南服务器操作系统安装指南 制定 制定 日期 日期 审核 审核 日期 日期 审批 审批 日期 日期 发布日期 发布日期 实施日期 实施日期 修订记录 审核记录和审批记录修订记录 审核记录和审批记录 修订记录修订记录 版本编号版本编号修订日期修订日期修订人修订人主要修订摘要主要修订摘要 V3 02011 05 26王磊按 ISO20000 标准调整文档 V3 12011 12 07王磊增加升级网卡驱动 V3 22012 06 06王磊修改分区为 LVM 审核记录审核记录 版本编号版本编号审核人员审核人员属于部门 单位 属于部门 单位 审核日期审核日期 审批记录审批记录 版本编号版本编号审批人员审批人员属于部门 单位 属于部门 单位 审批日期审批日期 目录目录 1 介绍 1 1 1 目的 1 1 2 适用范围 1 1 3 参考资料 1 2 准备 1 2 1 安装前准备 1 2 2 物理网卡说明 1 2 3 RAID 2 2 4 超线程 2 3 系统安装 2 3 1 KICKSTART安装 2 3 2 STEP BY STEP安装 3 3 3 磁盘管理 4 3 3 1创建逻辑卷 4 3 3 2创建文件系统 4 3 3 3挂载文件系统 4 4 系统设置 5 4 1 安全设置 5 4 1 1口令复杂度要求 5 4 1 2服务 5 4 1 3内置帐号 5 4 1 4修改系统时间为当前时间 6 4 1 5修改 root 口令 6 4 1 6关闭 sshv1 0 6 4 2 主机名称 6 5 网络配置 7 5 1 升级网卡驱动 7 5 2 服务器网卡配置列表 7 5 3 不使用的网卡配置 7 5 4 不做TEAM BONDING的网卡配置 8 5 5 1 组 2 块做TEAM BONDING的网卡配置 8 5 6 2 组每组各 2 块做TEAM BONDING的网卡配置 9 5 7GATEWAY和主机ROUTE 10 5 8 时间同步 10 附录一 KS CFG V2 5 0 0 12 第 1 页 共 14 页 1 1介绍介绍 1 11 1 目的目的 建立用于应用托管系统服务器的操作系统安装模版 说明安装和 配置的操作步骤 1 21 2 适用范围适用范围 本文档用于运维中心技术人员安装应用托管系统服务器操作系统 并供安装研发服务器参考 1 31 3 参考资料参考资料 2 2准备准备 2 12 1 安装前准备安装前准备 服务器型号 HP DL300G7 系列 DELL R710 内存 2 64G 本机硬盘 72 300G 2 8 网卡 2 12 端口 外设 DVDROM USB Removable Floppy 安装盘 Red Hat Enterprise Linux 5 5 x86 64 DVD 2 22 2 物理网卡说明物理网卡说明 NIC x y 表示服务器第 x 块网卡的第 y 端口 其中底板集成网卡 为第 0 块 其他网卡的编号如无标示按照从左到右 从上到下的顺 序排列 服务器背面视角 第 2 页 共 14 页 2 32 3 RAIDRAID 安装前通过磁盘阵列管理工具创建 Logical Drive RAID1 0 打开 Cache Settings 设置为 Enable Write Cache Battery Override 2 42 4 超线程超线程 关闭 DL 300 系列 G6 以上服务器支持超线程功能 关闭方法如下 System Options Processor Options Intel R Hyperthreading Options Disabled 3 3系统安装系统安装 3 13 1 KickstartKickstart 安装安装 默认采用 Kickstart 安装方式 连接 USB Removable Floppy 插入含有正确版本 ks cfg 文件的 软盘 放入 Red Hat Enterprise Linux 5 5 x86 64 DVD 光盘启动 内 核版本为 2 6 18 194 el5 输入命令启动 kickstart 安装 linux ks floppy G7 系列支持 U 盘 kickstart 命令 linux ks hd sda1 ks cfg sda1 指 U 盘所在的位置 ks cfg 为 kickstart 文件所在的位置 可以为子目录内的文件 如 sda1 mydir ks 50G cfg 可根据实际 第 3 页 共 14 页 情况调整 安装完成服务器重启完毕后 跳转到 3 3 1 继续 3 23 2 Step by stepStep by step 安装安装 如果 Kickstart 安装不适用或不成功 可以采用 Step by step 的安装方式 放入 Red Hat Enterprise Linux 5 5 x86 64 DVD 光盘启动 内 核版本为 2 6 18 194 el5 根据安装向导安装 Language Select English English Keyboard Configuration U S English Installation Type Custom Disk Partitioning Setup Manually partition with Disk Druid dev cciss c0d0p1100Mext3 boot dev cciss c0d0p2使用所有剩余空间创建 LVM 卷组名称 为 vg00 并新建以下 LV 分区 logvol swap fstype swap name lv swap size 20480 logvol fstype ext3 name lvol0 size 51200 logvol var fstype ext3 name lvol1 size 10240 logvol usr fstype ext3 name lvol2 size 5120 logvol tmp fstype ext3 name lvol3 size 5120 Firewall Configuration No Firewall Enable SElinux Disable Language Support Selection Select default language English USA Select additional languages English USA Time Zone Selection east China Beijing Guangdong Shanghai etc Set Root Password template root Package Group Selection Customize the set of packages to be installed 选择安装以下软件包组 组内选择安装的软件包保持默认 Desktop Environment GNOME Desktop Environment Applications Editors 第 4 页 共 14 页 Text based Internet Graphical Internet firefox Development Development Tools Legacy Software Development Development Libraries Base System Base Administration Tools System Tools X Window System Languages Chinese Support 3 33 3 磁盘管理磁盘管理 根据磁盘空间分配表配置逻辑卷和文件系统 3 3 13 3 1创建逻辑卷创建逻辑卷 创建指定大小磁盘空间的逻辑卷 比如 10G lvcreate L10G vg00 创建使用所有剩余磁盘空间的逻辑卷 lvcreate l100 FREE vg00 3 3 23 3 2创建文件系统创建文件系统 mkfs t ext3 dev vg00 lvol0 3 3 33 3 3挂载文件系统挂载文件系统 mkdir home trade mount dev vg00 lvol0 home trade vi etc fstab dev vg00 lvol0 home tradeext3 defaults1 2 第 5 页 共 14 页 4 4系统设置系统设置 4 14 1 安全设置安全设置 4 1 14 1 1口令复杂度要求口令复杂度要求 编辑 etc login defs 改 PASS MIN LEN 为 8 4 1 24 1 2服务服务 安装完成服务器重启完毕后 用 root 用户登录 关闭不需要的 服务 此内容已在 kickstart 内定义 如使用 kickstart 安装 无 需重复操作 chkconfig anacron off chkconfig arptables jf off chkconfig atd off chkconfig autofs off chkconfig cups off chkconfig cups config daemon off chkconfig firstboot off chkconfig haldaemon off chkconfig isdn off chkconfig kudzu off chkconfig netfs off chkconfig nfslock off chkconfig pcmcia off chkconfig portmap off chkconfig rpcgssd off chkconfig rpcidmapd off chkconfig sendmail off chkconfig smartd off chkconfig snmpd off chkconfig avahi daemon off 4 1 34 1 3内置帐号内置帐号 删除不必要的用户 仅保留需要的帐号 此内容已在 kickstart 内定义 如使用 kickstart 安装 无需重复操作 第 6 页 共 14 页 userdel adm userdel lp userdel sync userdel shutdown userdel halt userdel news userdel uucp userdel operator userdel gopher 4 1 44 1 4修改系统时间为当前时间修改系统时间为当前时间 4 1 54 1 5修改修改 rootroot 口令口令 passwd New Unix password root password Retype New Unix password root password 4 1 64 1 6关闭关闭 sshv1 0sshv1 0 编辑 etc ssh sshd config 找到 Protocol 2 1 更改为 Protocol 2 然后执行如下命令使更改生效 etc rc d init d sshd restart 如操作系统为 rhel5 以后版本 已默认 Protocol 2 故相应版 本不需设置 4 24 2 主机名称主机名称 根据主机配置列表配置主机名称 vi etc hosts host ip addresshostname vi etc sysconfig network HOSTNAME hostname 第 7 页 共 14 页 5 5网络网络配置配置 5 1 升级网卡驱动升级网卡驱动 如果要使用底板集成的 Broadcom 网卡 则需做此节操作 否则 可以跳过 RHEL5 X 版本中的 Broadcom NetXtreme II BCM 5709 网卡驱动 有 BUG 导致网卡在有负载时候偶尔中断 我们使用的 HP DL360 及 380 系列服务器底板集成的网卡为 Broadcom NetXtreme II BCM 5708 或 Broadcom NetXtreme II BCM 5709 存在此问题 需要升级 相关驱动解决 方法如下 至 broadcom 网站下载相关驱动 地址如下 http zh 目前最新版本为 v6 2 23 下载的文件包为 linux 6 2 23 zip 解压并安装 unzip linux 6 2 23 zip cd Server Linux Driver rpm ivh netxtreme2 6 2 23 1 src rpm cd usr src redhat rpmbuild bb SPECS netxtreme2 spec rpm ivh RPMS x86 64 netxtreme2 6 2 23 1 x86 64 rpm 5 25 2 服务器网卡配置列表 服务器网卡配置列表 根据网卡配置列表配置网络 5 35 3 不使用的网卡配置 不使用的网卡配置 vi etc sysconfig network scripts ifcfg eth0 DEVICE eth0 HWADDR MacAddress BOOTPROTO dhcp TYPE Ethernet 第 8 页 共 14 页 ONBOOT no 5 45 4 不做不做 teamteam bondingbonding 的网卡配置的网卡配置 vi etc sysconfig network scripts ifcfg eth0 DEVICE eth0 HWADDR MacAddress BOOTPROTO static TYPE Ethernet ONBOOT yes IPADDR eth0 ip address NETMASK eth0 net mask 5 55 5 1 1 组组 2 2 块做块做 teamteam bondingbonding 的网卡配置的网卡配置 以网卡 eth1 和 eth3 绑定为 1 组 Active Standby 模式网卡为例 其中 eth1 为主 eth3 为备 vi etc modprobe conf alias bond0 bonding vi etc sysconfig network scripts ifcfg bond0 DEVICE bond0 BOOTPROTO static TYPE Ethernet ONBOOT yes IPADDR bond0 ip address NETMASK bond0 net mask BONDING OPTS primary eth1 mode 1 miimon 200 vi etc sysconfig network scripts ifcfg eth1 DEVICE eth1 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond0 SLAVE yes vi etc sysconfig network scripts ifcfg eth3 DEVICE eth3 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond0 SLAVE yes 第 9 页 共 14 页 5 65 6 2 2 组每组各组每组各 2 2 块做块做 teamteam bondingbonding 的网卡配置的网卡配置 以网卡 eth3 主 和 eth5 备 绑定为 1 组 网卡 eth1 主 和 eth7 备 绑定为第 2 组为例 vi etc modprobe conf alias bond0 bonding alias bond1 bonding vi etc sysconfig network scripts ifcfg bond0 DEVICE bond0 BOOTPROTO static TYPE Ethernet ONBOOT yes IPADDR bond0 ip address NETMASK bond0 net mask BONDING OPTS primary eth3 mode 1 miimon 200 vi etc sysconfig network scripts ifcfg eth3 DEVICE eth3 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond0 SLAVE yes vi etc sysconfig network scripts ifcfg eth5 DEVICE eth5 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond0 SLAVE yes vi etc sysconfig network scripts ifcfg bond1 DEVICE bond1 BOOTPROTO static TYPE Ethernet ONBOOT yes IPADDR bond1 ip address NETMASK bond1 net mask BONDING OPTS primary eth1 mode 1 miimon 200 第 10 页 共 14 页 vi etc sysconfig network scripts ifcfg eth7 DEVICE eth7 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond1 SLAVE yes vi etc sysconfig network scripts ifcfg eth1 DEVICE eth1 HWADDR MacAddress BOOTPROTO none ONBOOT yes MASTER bond1 SLAVE yes 5 75 7 gatewaygateway 和主机和主机 routeroute vi etc sysconfig network GATEWAY gateway vi etc sysconfig network scripts route bond0 172 17 0 0 16 nexthop via 172 17 48 254 dev bond0 5 85 8 时间同步时间同步 注 请根据实际需求设置 此节为示例内容 仅供参考 服务器每天上午 6 00 和内部 NTP 服务器进行时间同步 除了内 部 NTP 服务器自身 修改 ntp conf 文件的 OUR TIMESERVERS 部分 vi etc ntp conf server 0 pool ntp org server 1 pool ntp org server 2 pool ntp org server server1IP prefer server server2IP 确保 NTP 服务端已经校时正确后进行首次手工校时 ntpd gq 增加定时校时任务 crontab e 第 11 页 共 14 页 0 6 usr sbin ntpd q 确认 ntpd 在 init 3 5 上关闭 chkconfig list ntpd 第 2 天查看日志时间同步是否成功 grep ntpd var log messages 第 12 页 共 14 页 附录一 附录一 ks cfgks cfg v2 5 0 0v2 5 0 0 请使用合法的 key 代替下文中的 号后再使用 Kickstart file automatically generated by anaconda Install OS instead of upgrade install Use hard drive installation media harddrive partition sda1 dir iso rhel55 Skip redhat installation key key System language lang en US UTF 8 System keyboard keyboard us Sytem timezone timezone Asia Shanghai xconfig startxonboot network device eth0 onboot no bootproto dhcp network device eth1 onboot no bootproto dhcp Root password rootpw iscrypted 1 Sr67m5kn FDh6nSLdFNnQIxnLqmmNa0 Reboot after installation reboot firewall disabled authconfig enableshadow enablemd5 selinux disabled bootloader location mbr driveorder cciss c0d0 append rhgb quiet The following is the partition information you requested Note that any partitions you deleted are not expressed here so unless you clear all partitions first this is not guaranteed to work 第 13 页 共 14 页 clearpart all drives cciss c0d0 part boot fstype ext3 size 100 ondisk cciss c0d0 part pv 100000 size 100 grow ondisk cciss c0d0 volgroup vg00 pesize 32768 pv 100000 logvol swap fstype swap name lv swap vgname vg00 size 20480 logvol fstype ext3 name lvol0 vgname vg00 size 51200 logvol var fstype ext3 name lvol1 vgname vg00 size 10240 logvol usr fstype ext3 name lvol2 vgname vg00 size 5120 logvol tmp fstype ext3 name lvol3 vgname vg00 size 5120 packages admin tools ba
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 浆液循环泵检修课件
- 高校薪资管理系统设计方案
- (2025年标准)电梯井道移交协议书
- 派出所安全知识培训心得
- (2025年标准)电量增容协议书
- (2025年标准)电厂报价协议书
- (2025年标准)地皮卖出石头协议书
- 2025云南昆明市呈贡区审计局编外合同制审计专员招聘1人笔试模拟试题及答案解析
- 2025云南省楚雄州武定县高桥中学教师招考流动(7人)笔试参考题库附答案解析
- 2025江西水利电力大学招聘1人(三)考试备考试题及答案解析
- 生物制品生产工艺过程变更管理技术指导原则
- 建筑施工现场签证单(模板)
- GBZ(卫生) 49-2014职业性噪声聋的诊断
- GB/T 9729-2007化学试剂氯化物测定通用方法
- GB/T 7588.2-2020电梯制造与安装安全规范第2部分:电梯部件的设计原则、计算和检验
- GB/T 13560-2017烧结钕铁硼永磁材料
- 三视图及尺寸标注课件
- 混凝土配合比验证检验委托书模板
- 住房公积金投诉申请书
- 众辰变频器说明书3400
- 小学教师量化考核表
评论
0/150
提交评论