• pxe


    pxe服务器搭建

    前提

    bios支持
    网卡支持

    搭建

    dhcp-server

    安装

    yum install -y dhcp
    

    配置

    vim /etc/dhcp/dhcpd.conf #可以看到里面提供了一个模板
    cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf
    vim /etc/dhcp/dhcpd.conf
    subnet 88.96.66.0 netmask 255.255.255.0 {
      range 88.96.66.40 88.96.66.100;
      option broadcast-address 88.96.66.255;
      next-server 88.96.66.40;
      default-lease-time 600;
      filename "pxelinux.0";
    }
    service dhcp configtest #检查是否有语法错误
    systemctl start dhcpd
    netstat -tulnp |grep :67 #dhcp服务默认监听67端口
    #redhat7默认开启防火墙,防火墙会拒绝所有数据包
    systemctl disable firewalld.service #下次开机关闭
    systemctl stop firewalld.service #当前关闭
    vim /etc/selinux/config #下次开机关闭
    SELINUX=disabled
    setenforce 0 #当前关闭
    getenforce
    systemctl enable dhcpd #开机自启动
    

    tftp-server

    安装

    yum install -y tftp-server
    

    配置

    vim /etc/xinetd.d/tftp
    service tftp{
      protocol - udp
      user = root
      server = /usr/sbin/in.tftp
      server_args = -s /var/lib/tftpboot #tftp服务的主目录,类似于ftp服务器的/var/ftp
      disable = no #是否启动该服务,默认是不启动
    }
    systemctl restart xinetd
    
    default linux #默认从linux标签引导系统
    prompt 1 #是否等待用户选择
    label linux #定义名为linux的标签
      kernel vmlinuz 
      append initrd=initrd.img
    

    给待安装的服务器发送os内核和初始化文件

    ftp

  • 相关阅读:
    OpenCV && C++ 01
    图像矩的理解
    Halcon Example
    LabVIEW
    Working Experience
    Working Experience
    Working Experience
    C++
    Trigger,Cursor
    Paging
  • 原文地址:https://www.cnblogs.com/t1314/p/15886105.html
Copyright © 2020-2023  润新知