环境准备:
rhel7(node1为rhel7的备份)
ip:172.25.254.100
安装图形化生成 kickstart 自动安装脚本工具
yum install system-config-kickstart
启动图形化工具
system-config-kickstart
yum install httpd -y
systemctl enable --now httpd
df -h
ln -s /rhel7/ /var/www/html
cd /var/ww/html
ls
实现访问资源库
检查:
步骤:
[root@node1 ~]# ip a
[root@node1 ~]# vmset.sh eth0 172.25.254.100 kick.silingchuan.org
#安装开启图形
[root@kick ~]# ifconfig
[root@kick ~]# yum install system-config-kickstart
[root@kick ~]# system-config-kickstart
[root@kick ~]# yum install httpd -y
[root@kick ~]# systemclt enable --now httpd
[root@kick ~]# df -h
[root@kick ~]# ln -s /rhel7/ /var/www/html/
[root@kick ~]# cd /var/www/html/
[root@kick ~]# ls
[root@kick ~]# cd
[root@kick ~]# ls
[root@kick ~]# vim ks.cfg
[root@kick ~]# cp /root/ks.cfg /var/www/html/
通过备份虚拟机测试:出现DHCP问题
解决详见下个文件