2019独角兽企业重金招聘Python工程师标准>>>

NO.1###########################
prepare software:
 system-config-kickstart
 syslinux
 dhcp 
 tftp-server
 httpd/vsftpd
you can use "yum install software" to install packages.

NO.2#########################
configure the DHCP-SERVICE:
# vim  /etc/dhcp/dhcpd.conf
option domain-name "example.org";                      #domain-name
option domain-name-servers 172.25.254.186;      #dns-host

default-lease-time 600;                                            #lease-time
max-lease-time 7200;                                             #max-lease-time
log-facility local7;                                                     #log-type
authoritative;                                                           #auth

subnet 192.168.2.0 netmask 255.255.255.0 {          #subnet
  range 192.168.2.2 192.168.2.20;                           #IP-pool
  option routers 192.268.2.234;                               #default-router
  filename "pxelinux.0";                                            #find the pxelinux
  next-server 192.268.2.234;                                    #tftp-server
}
 
#systemctl restart dhcpd
#systemctl enable dhcpd

NO.3####################################
configure the http:(for sharing the system operation)
#mount rhel7-x86_64.iso /mnt
#cp -r /mnt/* /var/www/html/rhel7
#systemctl enable httpd
#systemctl restart httpd

Test the sharing:
   Browser http://192.268.2.234/centos
OR
 configure the vsftpd:
#cp -r /mnt/* /var/ftp/pub/rhel7
#chgrp ftp /var/ftp/pub -R
#systemctl restart vsftpd
#systemctl enable vsftpd

Test the sharing:
   Browser ftp://192.268.2.234/centos

NO.4#####################################
Use the create kictstart! Generating a ks.cfg.

NO.5####################################
configure a tftp-server:

# vim /etc/xinetd.d/tftp
disable                = no    #modify
# systemctl restart xinetd.service

NO.6####################################
make some files and pxework-directory!
1)
#cd /var/lib/tftpboot/
#mkdir pxelinux.cfg
2)
#mount the iso of the rhel7
#cp isolinux/* /var/lib/tftpboot
3)
#cp /var/lib/tftpboot/isolinux.cfg   /var/lib/tftpboot/pxelinux.cfg/default
#cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
4)
make a userfully install source and kickstart,my of this is in the ftp's(http) pub
http://192.268.2.234/centos

ftp://192.268.2.234/ks.cfg
5)
config the file of /var/lib/tftpboot/pxelinux.cfg/default like this:
default vesamenu.c32
#prompt 1
timeout 600
display boot.msg
menu background splash.jpg
menu title Welcome to Red Hat Enterprise Linux 6.0!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

label linux
  menu label ^Install or upgrade an existing system
  menu default
  kernel vmlinuz
  append initrd=initrd.img
label rescue
  menu label ^Rescue installed system
  kernel vmlinuz
  append initrd=initrd.img rescue
label small-install
  menu label rhel6-small-install
  kernel vmlinuz
  append initrd=initrd.img repo=http://192.268.2.234/centos ks=ftp://192.268.2.234/pub/ks.cfg noipv6

转载于:https://my.oschina.net/xxbAndy/blog/366707

基于CentOS中PXE网络环境构建实例相关推荐

  1. android中怎么网络判断,Android中判断网络是否连接实例详解

    Android中判断网络是否连接实例详解 在android中,如何监测网络的状态呢,这个有的时候也是十分重要的,方法如下: public class ConnectionDetector { priv ...

  2. python中numpy数组的合并_基于Python中numpy数组的合并实例讲解

    基于Python中numpy数组的合并实例讲解 Python中numpy数组的合并有很多方法,如 - np.append() - np.concatenate() - np.stack() - np. ...

  3. 基于CELLO的Fabric网络环境部署

    1.简介: 该文档主要是在cello下实现Fabric网络环境的便携部署,其主要功能如下: 1)管理区块链的生命周期,例如自动创建/启动/停止/删除/保持健康状态. 2)支持定制(例如,大小,一致)区 ...

  4. iOS中根据网络环境显示不同图片

    首先说一下怎么监听网络状态的改变 监听网络状态的改变可以使用苹果提供的Reachability来检测网络状态,也可以使用AFN框架来监听网络状态的改变.相比而言,我更推荐大家使用AFN来监听 如何使用 ...

  5. CentOS中JAVA_HOME的环境变量设置

    运行Java应用的时候,提示无法找到JAVA_HOME,查询java -version [jifeng@localhost bin]$ java -version java version " ...

  6. linux java运行环境_linux(centos)中java运行环境_jdk安装与配置 | OPS技术联盟

    系统版本 [root@iZwz95n2hxcdh4x6vicjmgZ ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) ...

  7. 基于Centos中的OpenGauss进行数据库程序设计

    * 进入到安装目录:cd /opt/software/openGauss进入: su - omm开启opengauss服务 gs_om -t start进入到opengauss数据库中: gsql - ...

  8. 基于层序+中序遍历序列构建二叉树

    问题是:基于层序遍历序列+中序遍历序列唯一建立一棵树,然后输出前序,后序遍历序列. 四种遍历树的思路以及代码自然不必多言,有趣的是如何由层序+中序建立树. 首先需要说的是,这个也是递归解法. http ...

  9. pythonweb搭建教程_基于Centos搭建Python Web 环境搭建教程

    CentOS 7.2 64 位操作系统 安装 setuptools 工具 安装 因为之后我们需要安装 Django ,而 Django 需要用这个工具,所以我们需要先安装 setuptools 工具. ...

最新文章

  1. 张三入职遭遇,供入台资企业参考
  2. Java枚举:小小enum,优雅而干净
  3. 用Canvas为网页加入动态背景
  4. 最小公倍数的求解原理和证明
  5. mysql 8.0.x版本压缩包安装方式
  6. 【java】java 线程组 ThreadGroup
  7. 谈谈入职新公司1月的体会
  8. [tf] tf.gradients vs optimizer.compute_gradients
  9. Spring boot +java.awt.HeadlessException: null异常处理
  10. 使用 C# 开发智能手机软件:推箱子(十)
  11. 小贝拉机器人是朋友_被Angelababy、周震南等摸头杀?机器人贝拉凭什么受宠
  12. Android高级模糊技术[转]
  13. Arrays工具类的常用方法
  14. 微信小程序源码:淘宝客外卖返利优惠券、头像 壁纸 朋友圈文案查询、古诗词技术文章查询
  15. @submit.prevent作用
  16. Linux的命令回收站在哪,Linux命令行删除文件到回收站
  17. 用大数据把电视观众“挖”出来
  18. java stringbuilder_Java stringBuilder的使用方法及实例解析
  19. ACSII,GB2312,GBK,GB18030,Unicode,UTF8,UTF16,UTF32,BOM区别与转换——字符编码最全总结
  20. oracle中毒,oracle数据库中毒恢复 oracle数据库解密恢复 服务器中勒索病毒解密恢复.Hermes666...

热门文章

  1. 到底什么时候该使用MQ
  2. WebLogic集群案例分析
  3. 搭建yum仓库定制rpm包
  4. Java HotSpot VM 命令行参数【官方版】
  5. 面试问题-使用Java线程做数学运算
  6. LVS nat 是否需要借助iptables 的snat实现负载均衡
  7. Spring3+MyBatis3整合无法输出SQL语句问题的解决
  8. tomcat安装配置及应用
  9. 用C语言实现常见的三种中文内码转换
  10. PowerDesigner最基础的使用方法入门学习