如何制作一个简易网站,网站做贷款许可证,男生技能培训班有哪些,做网站的感觉此实验环境#xff1a;rhel7主机
一、kickstart自动化安装脚本
1、安装可视化图形
[rootlocalhost ~]# yum group install Server with GUI
2、关闭vmware dhcp功能#xff08;编辑-虚拟网络编辑器#xff09; 3、httpd
1、安装httpd服务
[rootlocalhost …此实验环境rhel7主机
一、kickstart自动化安装脚本
1、安装可视化图形
[rootlocalhost ~]# yum group install Server with GUI
2、关闭vmware dhcp功能编辑-虚拟网络编辑器 3、httpd
1、安装httpd服务
[rootlocalhost ~]# yum install httpd -y
2、开启httpd服务
[rootlocalhost ~]# systemctl start httpd4、安装图形化生成kickstart自动安装脚本的工具
[rootlocalhost ~]# yum install system-config-kickstart
5、启动图形工具
[rootlocalhost ~]# systemctl-config-kickstart根据图示选择 此处为默认不动 关闭防火墙 关闭可视化图形 安装执行命令 注一定要保存 保存到/root路径下 6、添加软件安装
vim ks.cfg
添加如下 %package base httpd %end ksvalidator ks.cfg
7、将文件放到默认页面文件
cp /root/ks.cfg /var/www/html/ks.cfg
ksvalidator /var/www/html/ks.cfg //检查一下ks.cfg语法 8、安装http服务并启动
[rootlocalhost ~]# yum install httpd -y
[rootlocalhost ~]# systemctl enable --now httpd
9、在/var/www/html/下创建一个软链接指向/rhel7/
[rootlocalhost ~]# ln -s /rhel7/ /var/www/html/
[rootlocalhost ~]# cd /var/www/html
二、搭建dhcp服务
1、安装dhcp服务器
[rootlocalhost ~]# yum install dhcp -y
2、修改dhcp配置文件
[rootlocalhost ~]# vim /etc/dhcp/dhcpd.conf
将35行包括35之后全部删除27、28行注释 3、重启dhcp服务
[rootlocalhost ~]# systemctl restart dhcpd
三、搭建pxe网络环境
1、安装软件包并启动
[rootlocalhost ~]# yum search pxelinux
[rootlocalhost ~]# yum install syslinux.x86_64
[rootlocalhost ~]# yum install tftp-server.x86_64
[rootlocalhost ~]# systemctl enable --now tftp
2、设置tfp服务器支持网络启动
[rootlocalhost ~]# cp /rhel7/isolinux/* /var/lib/tftpboot/
[rootlocalhost ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[rootlocalhost ~]# mkdir pxelinux.cfg
[rootlocalhost ~]# cp isolinux.cfg pxelinux.cfg/default
3、将资源放到/var/lib/tftpboot目录下
[rootlocalhost ~]# cp /rhel7/isolinux/* /var/lib/tftpboot/
[rootlocalhost ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[rootlocalhost ~]#cd /var/lib/tftpboot/
[rootlocalhost tftpboot]# ls
boot.cat grub.conf isolinux.bin memtest splash.png upgrade.img vmlinuz
boot.msg initrd.img isolinux.cfg pxelinux.0 TRANS.TBL vesamenu.c32
[rootlocalhost tftpboot]# mkdir pxelinux.cfg
[rootlocalhost tftpboot]# cp isolinux.cfg pxelinux.cfg/default
4、修改文件
[rootlocalhost tftp]# vim /etc/dhcp/dhcpd.conf
[rootlocalhost tftp]#vim /var/lib/tftpboot/pxelinux.cfg/default
四、测试
打开虚拟机选择如图所示 至此实验结束
注安装好之后一定要立即关机然后修改回从光盘启动