資源描述:
《Redhat 6.5基于網(wǎng)絡(luò)安裝服務(wù)器配置.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、概述本文以Redhat6.5為基礎(chǔ),通過(guò)配置網(wǎng)絡(luò)安裝服務(wù)器,實(shí)現(xiàn)RedhatLinux的網(wǎng)絡(luò)安裝。主要用到的軟件(服務(wù))有DHCP,TFTP,NFS,Kickstart等。本文只列出具體步驟,不含原理說(shuō)明。1.基礎(chǔ)配置1.1更改IP地址[root@localhost~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0[root@localhost~]#cat/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=08:00:27:53:44:fbTYPE=EthernetUUID=82a
2、ffeef-922e-40b2-b89f-a5df8e9fa236ONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneIPADDR=192.168.7.30NETMASK=255.255.255.0GATEWAY=192.168.7.1IPV6INIT=noUSERCTL=no[root@localhost~]#ifupeth0Activeconnectionstate:activatedActiveconnectionpath:/org/freedesktop/NetworkManager/ActiveConnection/11.2更改hostnme[ro
3、ot@localhost~]#vi/etc/sysconfig/network[root@redhatnis~]#cat/etc/sysconfig/networkNETWORKING=yesHOSTNAME=redhatnis[root@localhost~]#vi/etc/hosts[root@localhost~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost.localdomainlocalhost6localho
4、st6.localdomain6192.168.7.30redhatnis1.3關(guān)閉SELINUX及防火墻(iptables)[root@localhost~]#vi/etc/selinux/config[root@redhatnis~]#cat/etc/selinux/config
5、grepdisa#disabled-SELinuxisfullydisabled.SELINUX=disabled[root@localhost~]#chkconfig
6、grepiptaiptables0:off1:off2:on3:on4:on5:on6:off[root@localhost~]#chkc
7、onfig--level2345iptablesoff[root@localhost~]#shutdown-ry02.軟件安裝121.1掛載安裝光盤(pán)[root@redhatnis~]#mount/dev/sr0/mntmount:blockdevice/dev/sr0iswrite-protected,mountingread-only[root@redhatnis~]#df-hFilesystemSizeUsedAvailUse%Mountedon/dev/mapper/vg_root-lv_root20G6.2G12G35%/tmpfs940M72K940M1%/dev/shm/de
8、v/sda1485M39M421M9%/boot/dev/sr03.6G3.6G0100%/mnt1.2配置YUM源[root@redhatnis~]#cd/etc/yum.repos.d[root@redhatnisyum.repos.d]#viinstallmedia.repo[root@redhatnisyum.repos.d]#catinstallmedia.repo[InstallMedia]name=RedHatEnterpriseLinux6.5baseurl=file:///mnt/Serverenabled=1gpgcheck=0[root@redhatnisyum.r
9、epos.d]#yumlistLoadedplugins:product-id,refresh-packagekit,security,subscription-managerThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.InstallMedia
10、3.9kB00:00...Installe