当前位置: 首页 > news >正文

设计师的网站惠州市住房和城乡建设厅网站

设计师的网站,惠州市住房和城乡建设厅网站,水果网页设计模板图片,做门户网站价格PXE简介 PXE#xff08;Preboot eXecution Environment#xff09;是一种在计算机启动时使用网络接口从远程服务器获取操作系统安装和启动信息的技术。通过PXE#xff0c;计算机可以从局域网中的PXE服务器上下载操作系统安装文件#xff0c;并进行自动化的操作系统部署或故…PXE简介 PXEPreboot eXecution Environment是一种在计算机启动时使用网络接口从远程服务器获取操作系统安装和启动信息的技术。通过PXE计算机可以从局域网中的PXE服务器上下载操作系统安装文件并进行自动化的操作系统部署或故障排除。由Intel公司开发的PXE网络引导技术工作在Client/Server模式可以同时装配多台机器安装系统、配置各种服务同时不需要光盘、U 盘等安装介质实现远程连接。 kickstart自动安装脚本的作用 在企业中安装多台操作系统时面临的问题 当安装Linux操作系统时安装过程会需要回答很多关于设定的问题这些问题必须手动选择否则无法进行安装。当只安装1台Linux系统手动选择设定工作量比较轻松当安装多台Linux这些设定需要重复多次这些重复动作是效率低下的操作 如何解决以上问题 用文件来记录所有安装过程中问题的答案并让所有需要安装的主机自动读取 以上解决方案中记录系统安装过程中所有问题答案的文件叫kickstart脚本 实验环境 RHEL7主机开启主机图形配置网络可用关闭VMware DHCP功能软件仓库能正常工作 如果安装的时候安装了图形界面则输入init 5将图形界面打开若是没有安装图形界面则可以使用yum install group Server with GUI -y命令下载安装图形界面。 /root/anaconda-ks.cfg此文件是在系统安装好之后自动生成的这个文件记录了系统在安装过程中的所有设定。 安装图形化生成kickstart自动安装脚本的工具 [rootwww ~]# yum install system-config-kickstart -y启动图形制作工具 [rootwww ~]# system-config-kickstart按照图示更改配置 安装源选择HTTP通过网络分享安装源现在我们没有网络分享安装源所以需要自己搭建 下载httpd并启动 [rootwww ~]# yum install httpd -y [rootwww ~]# systemctl enable --now httpd创建一个符号链接软链接在 /var/www/html/ 目录下创建一个指向 /rhel7/ 目录的软链接。通过创建这个软链接当访问 /var/www/html/ 时实际上会访问到 /rhel7/ 的内容 [rootwww ~]# ln -s /rhel7/ /var/www/html/ [rootwww ~]# cd /var/www/html/ [rootwww html]# ls rhel7根据自己的网卡配置图示为ens33而我自己的是eth0。 上图为安装后运行的脚本可以根据自己的需要写运行脚本。 我修改了文件名称为ks1.cfg 4. 编辑ks1.cfg文件 [rootwww ~]# vim ks1.cfg 修改完检查是否有语法错误 [rootwww ~]# ksvalidator ks.cfg 将此自动化安装脚本共享出去 [rootwww ~]# cp ks1.cfg /var/www/html/进入网页进行测试 6. 安装并搭建DHCP服务 安装DHCP服务器为其他服务器提供分配ip的功能 [rootwww ~]# yum install dhcpd -y # 生成配置文件 [rootwww ~]# \cp -f /usr/share/doc/dhcp*/dhcpd.conf.example /etc/dhcp/dhcpd.conf# 编写/etc/dhcp/dhcpd.conf配置文件 [rootwww ~]# cat /etc/dhcp/dhcpd.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd ## option definitions common to all supported networks... option domain-name wwwl.org; #公司域名 option domain-name-servers 114.114.114.114;#对外分发的dns地址default-lease-time 600; max-lease-time 7200;# Use this to enble / disable dynamic dns updates globally. #ddns-update-style none;# If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. #authoritative;# Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7;# No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology.#subnet 10.152.187.0 netmask 255.255.255.0 { #}# This is a very basic subnet declaration.subnet 172.25.254.0 netmask 255.255.255.0 {range 172.25.254.30 172.25.254.40;#地址池option routers 172.25.254.2;#网关next-server 172.25.254.133;#下一个服务器filename pxelinux.0;#在next-server上读取的文件 }#重启DHCP [rootwww ~]# systemctl restart dhcpd [rootwww ~]# systemctl enable --now dhcpd测试安装 此处的网址根据自己的写我配置的为kshttp://172.25.254.133/ks1.cfg 8. 搭建PXE网络安装环境实现服务器自动部署 # 环境需要最基本的程序 [rootwww ~]# yum install syslinux.x86 # 共享pxelinux.0数据文件的网络服务 [rootwww ~]# yum install tftp-server.x86_64 -y # tftp服务自启并立即启动 [rootwww ~]# systemctl enable --now tftp # 将镜像中引导 Linux 系统的文件复制到该目录下 [rootwww ~]# cp -p /rhel7/isolinux/* /var/lib/tftpboot/ # pxelinux 的主要引导文件复制到这里 [rootwww ~]# cp -p /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ [rootwww ~]# cd /var/lib/tftpboot/ [rootwww tftpboot]# mkdir pxelinux.cfg # 将该配置文件复制到pxelinux.cfg/default中 [rootwww tftpboot]# cp isolinux.cfg pxelinux.cfg/default[rootwww tftpboot]# vim /var/lib/tftpboot/pxelinux.cfg/default default vesamenu.c32 timeout 30 #设置超时时间3sdisplay boot.msg# Clear the screen when exiting the menu, instead of leaving the menu displayed. # For vesamenu, this means the graphical background is still displayed without # the menu itself for as long as the screen remains in graphics mode. menu clear menu background splash.png menu title Red Hat Enterprise Linux 7.9 menu vshift 8 menu rows 18 menu margin 8 #menu hidden menu helpmsgrow 15 menu tabmsgrow 13# Border Area menu color border * #00000000 #00000000 none# Selected item menu color sel 0 #ffffffff #00000000 none# Title bar menu color title 0 #ff7ba3d0 #00000000 none# Press [Tab] message menu color tabmsg 0 #ff3a6496 #00000000 none# Unselected menu item menu color unsel 0 #84b8ffff #00000000 none# Selected hotkey menu color hotsel 0 #84b8ffff #00000000 none# Unselected hotkey menu color hotkey 0 #ffffffff #00000000 none# Help text menu color help 0 #ffffffff #00000000 none# A scrollbar of some type? Not sure. menu color scrollbar 0 #ffffffff #ff355594 none# Timeout msg menu color timeout 0 #ffffffff #00000000 none menu color timeout_msg 0 #ffffffff #00000000 none# Command prompt text menu color cmdmark 0 #84b8ffff #00000000 none menu color cmdline 0 #ffffffff #00000000 none# Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.menu tabmsg Press Tab for full configuration options on menu items.menu separator # insert an empty line menu separator # insert an empty linelabel linuxmenu label ^Install Red Hat Enterprise Linux hahahahahaah #设置安装时显示的字符menu default #安装时默认选择这个选项kernel vmlinuzappend initrdinitrd.img repohttp://172.25.254.133/rhel7 kshttp://172.25.254.133/ks1.cfg quiet #静默label checkmenu label Test this ^media install Red Hat Enterprise Linux 7.9kernel vmlinuzappend initrdinitrd.img inst.stage2hd:LABELRHEL-7.9\x20Server.x86_64 rd.live.check quietmenu separator # insert an empty line# utilities submenu menu begin ^Troubleshootingmenu title Troubleshootinglabel vesamenu indent count 5menu label Install Red Hat Enterprise Linux 7.9 in ^basic graphics modetext helpTry this option out if youre having trouble installingRed Hat Enterprise Linux 7.9.endtextkernel vmlinuzappend initrdinitrd.img inst.stage2hd:LABELRHEL-7.9\x20Server.x86_64 xdrivervesa nomodeset quietlabel rescuemenu indent count 5menu label ^Rescue a Red Hat Enterprise Linux systemtext helpIf the system will not boot, this lets you access filesand edit config files to try to get it booting again.endtextkernel vmlinuzappend initrdinitrd.img inst.stage2hd:LABELRHEL-7.9\x20Server.x86_64 rescue quietlabel memtestmenu label Run a ^memory testtext helpIf your system is having issues, a problem with yoursystems memory may be the cause. Use this utility tosee if the memory is working correctly.endtextkernel memtestmenu separator # insert an empty linelabel localmenu label Boot from ^local drivelocalboot 0xffffmenu separator # insert an empty line menu separator # insert an empty linelabel returntomainmenu label Return to ^main menumenu exitmenu end 新建虚拟机进行安装 选择打开电源时进入固件 默认会选择第一个不用自己手动选等待3s自动安装 安装完成后记得关机再选择打开电源时进入固件将启动方式更改成默认的方式Hard Drive 即硬盘启动方式。不然会进入无限安装
http://www.hkea.cn/news/14535394/

相关文章:

  • 英文广告网站模板免费下载竞价托管
  • 成都网站建设常见问题禁止wordpress自动更新
  • 深圳设计网站的公司深圳设计网页
  • 上海门户网站建设方案如何做2级网站
  • 计算机企业网站建设论文北京软件开发公司哪家专业
  • 网站开发薪资2022年最近一周新闻大事
  • 怎么自己编程做网站新浪网站怎么做推广
  • 河北省做网站的企业石家庄免费网站设计
  • 代刷业务网站建设前端面试题2023
  • 学校网站建设开题报告书如何做公众号
  • 怎样做网站的优化 排名有限公司破产债务怎么办
  • 大连无网站的企业有哪些游戏推广话术技巧
  • 厦门 网站建设公司公司网站建设文案
  • 新建网站软件微信公众号第三方平台
  • 温州合作网站网站控制面板地址
  • wordpress搭建外贸网站网站专项审批查询
  • 学校网站建设的必要性wordpress镶入thinkphp
  • 上海网站设计工具jsp建网站
  • 安徽省建设厅网站工程师查询旅游型网站开发
  • 网站推广优化是什么意思python基础教程作者
  • 定制型网站设计天津哪家做企业网站
  • 网站架构设计师薪酬微网站开发技术架构
  • 怎么在工商局网站做股东变更太和县建设银行网站
  • 网站开发工程师报名地点网站首页优化方案
  • 哈尔滨+做网站公司有哪些网站群管理
  • 网站开发分页代码网页 制作
  • 威海网站制作团队网站建设贰金手指科捷6
  • 单页网站的营销长沙做网站推荐
  • 广西做网站建设的公司网站设计首页动态效果怎么做
  • 网站建设公司知名企业手机网站导航设计