Redhat 6.5基于网络安装服务器配置.doc

上传人:飞****9 文档编号:134196831 上传时间:2020-06-03 格式:DOC 页数:8 大小:42.01KB
返回 下载 相关 举报
Redhat 6.5基于网络安装服务器配置.doc_第1页
第1页 / 共8页
Redhat 6.5基于网络安装服务器配置.doc_第2页
第2页 / 共8页
Redhat 6.5基于网络安装服务器配置.doc_第3页
第3页 / 共8页
Redhat 6.5基于网络安装服务器配置.doc_第4页
第4页 / 共8页
Redhat 6.5基于网络安装服务器配置.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《Redhat 6.5基于网络安装服务器配置.doc》由会员分享,可在线阅读,更多相关《Redhat 6.5基于网络安装服务器配置.doc(8页珍藏版)》请在金锄头文库上搜索。

1、概述本文以Redhat6.5为基础,通过配置网络安装服务器,实现Redhat Linux的网络安装。主要用到的软件(服务)有DHCP,TFTP,NFS,Kickstart等。本文只列出具体步骤,不含原理说明。1. 基础配置1.1 更改IP地址rootlocalhost # vi /etc/sysconfig/network-scripts/ifcfg-eth0rootlocalhost # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=08:00:27:53:44:fbTYPE=EthernetUUID=82af

2、feef-922e-40b2-b89f-a5df8e9fa236ONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneIPADDR=192.168.7.30NETMASK=255.255.255.0GATEWAY=192.168.7.1IPV6INIT=noUSERCTL=norootlocalhost # ifup eth0Active connection state: activatedActive connection path: /org/freedesktop/NetworkManager/ActiveConnection/11.2 更改hostnmer

3、ootlocalhost # vi /etc/sysconfig/networkrootredhatnis # cat /etc/sysconfig/networkNETWORKING=yesHOSTNAME=redhatnisrootlocalhost # vi /etc/hostsrootlocalhost # cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 local

4、host6.localdomain6192.168.7.30 redhatnis1.3 关闭SELINUX及防火墙(iptables)rootlocalhost # vi /etc/selinux/configrootredhatnis # cat /etc/selinux/config |grep disa#disabled - SELinux is fully disabled.SELINUX=disabledrootlocalhost # chkconfig |grep iptaiptables 0:off1:off2:on3:on4:on5:on6:offrootlocalhost #

5、 chkconfig -level 2345 iptables offrootlocalhost # shutdown -ry 02. 软件安装122.1 挂载安装光盘rootredhatnis # mount /dev/sr0 /mntmount: block device /dev/sr0 is write-protected, mounting read-onlyrootredhatnis # df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_root-lv_root 20G 6.2G 12G 35% /tmpfs

6、 940M 72K 940M 1% /dev/shm/dev/sda1 485M 39M 421M 9% /boot/dev/sr0 3.6G 3.6G 0 100% /mnt2.2 配置YUM源rootredhatnis # cd /etc/yum.repos.drootredhatnis yum.repos.d# vi installmedia.reporootredhatnis yum.repos.d# cat installmedia.repo InstallMedianame=Red Hat Enterprise Linux 6.5baseurl=file:/mnt/Serveren

7、abled=1gpgcheck=0rootredhatnis yum.repos.d# yum listLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.InstallMedia | 3.9 kB 00:00 . Installed PackagesConsoleKit.

8、x86_64 0.4.1-3.el6 anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.52.3 安装所需软件rootredhatnis # yum install -y -q xinetd tftp tftp-server ftp vsftpd dhcp nfs-utilsThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.3. 配置DHCP Serverrootred

9、hatnis # cd /etc/dhcprootredhatnis dhcp# vi dhcpd.conf rootredhatnis dhcp# cat dhcpd.conf # DHCP Server Configuration file.# see /usr/share/doc/dhcp*/dhcpd.conf.sample# see man 5 dhcpd.conf#allow booting;allow bootp;#Boot 所需文件filename pxelinux.0;#TFTP服务器IP next-server 192.168.7.30; subnet 192.168.7.

10、0 netmask 255.255.255.0option subnet-mask 255.255.255.0;#IP地址范围range 192.168.7.31 192.168.7.100; default-lease-time 21600;max-lease-time 43200;rootredhatnis dhcp# service dhcpd startStarting dhcpd: OK rootredhatnis dhcp# chkconfig -level 345 dhcpd onrootredhatnis dhcp# chkconfig |grep dhcpddhcpd 0:o

11、ff1:off2:off3:on4:on5:on6:off4. 通过FTP(vsftpd)方式上传ISO镜像rootredhatnis # cd /etc/vsftpd/rootredhatnis vsftpd# vi ftpusersrootredhatnis vsftpd# cat ftpusers |grep root#rootrootredhatnis vsftpd# vi user_listrootredhatnis vsftpd# cat user_list |grep root#rootrootredhatnis # service vsftpd startStarting vs

12、ftpd for vsftpd: OK rootredhatnis # chkconfig -level 345 vsftpd on此处上传ISO镜像rootredhatnis # ll /tmp |grep iso-rw-r-r- 1 root root 3853516800 Feb 16 08:40 rhel-server-6.5-x86_64-dvd.iso5. 配置NFSrootredhatnis # mkdir /isorootredhatnis # mv /tmp/rhel-server-6.5-x86_64-dvd.iso /isorootredhatnis # vi /etc/

13、exports rootredhatnis # cat /etc/exports /iso *(ro)/mnt *(ro)rootredhatnis # service rpcbind statusrpcbind (pid 931) is running.rootredhatnis # service rpcidmapd statusrpc.idmapd (pid 1435) is running.rootredhatnis # service nfs startStarting NFS services: OK Starting NFS quotas: OK Starting NFS mountd: OK Starting NFS daemon: OK Starting RPC idmapd: OK rootredhatnis # showmount -e

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 管理论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号