加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码门户网 (https://www.92codes.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

pxe自动安装的实现

发布时间:2016-09-25 15:26:01 所属栏目:Linux 来源:站长网
导读:你还在一台台的手动安装系统吗? 告诉你个偷懒的方法,你会喜欢的! 一、 pxe的概念 PXE(preboot execute environment),工作于C/S(客户机服务器)的网络模式,

4、启动DHCP服务

[root@localhost ~]# service dhcpd restart

Shutting down dhcpd:                                       [  OK  ]

Starting dhcpd:                                            [  OK  ]

[root@localhost ~]#

5、开启TFTP

编辑tftp的超级守护进程:

[root@localhost ~]# vim /etc/xinetd.d/tftp

pxe自动安装的实现

重启超级守护进程:

[root@localhost ~]# service xinetd restart

Stopping xinetd:                                           [  OK  ]

Starting xinetd:                                           [  OK  ]

[root@localhost ~]#

6、将驱动和内核拷贝到/tftpboot目录下

切换到tfpt根目录下:

[root@localhost ~]# cd /tftpboot

将pxe的驱动考到/tftpboot目录下:

[root@localhost tftpboot]# cp /usr/lib/syslinux/pxelinux.0 ./

将pxe的内核考到/tftpboot目录下

[root@localhost tftpboot]# cp /mnt/cdrom/images/pxeboot/vmlinuz ./

将pxe的跟硬件相关考到/tftpboot目录下

[root@localhost tftpboot]# cp /mnt/cdrom/images/pxeboot/initrd.img ./

[root@localhost tftpboot]#

在/tftpboot目录下创建一个目录pexlinux.cfg

[root@localhost tftpboot]# mkdir -pv pxelinux.cfg

mkdir: created directory `pxelinux.cfg'

[root@localhost tftpboot]#

将光盘上的引导文件拷贝到pexlinux.cfg目录下

用于脱机配置启动时一些其他的交互

[root@localhost tftpboot]# cp /mnt/cdrom/isolinux/isolinux.cfg pxelinux.cfg/default

[root@localhost tftpboot]#

7、配置引导过程中的一些信息

[root@localhost tftpboot]# cd pxelinux.cfg/

[root@localhost pxelinux.cfg]# vim default

pxe自动安装的实现

(编辑:源码门户网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读