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

台州cms建站系统商业网站网址

台州cms建站系统,商业网站网址,无极网络平台,营销型网站建设报价使用kickstart和anaconda自动化安装centos系统 使用kickstart和anaconda自动化安装centos系统 anaconda 介绍 kickstart 介绍 实验过程 前提 1.已经安装好至少两台centos系统 2.需要实现自动安装的系统的光盘镜像 3.已安装的系统之间可以通讯(比如处于VMware中的NAT网络的… 使用kickstart和anaconda自动化安装centos系统 使用kickstart和anaconda自动化安装centos系统 anaconda 介绍 kickstart 介绍 实验过程 前提 1.已经安装好至少两台centos系统 2.需要实现自动安装的系统的光盘镜像 3.已安装的系统之间可以通讯(比如处于VMware中的NAT网络的同一个网段)1.搭建httpd服务来提供系统安装源 以后需要给某台主机安装系统就直接通过网络从此服务器得到安装的系统和安装方式(ks.cfg提供安装指导) 本次实验使用centos7作为安装源服务器 该系统地址:172.20.3.82;使用VMware桥接网络 安装httpd rpm -q httpd yum install httpd systemctl enable httpd systemctl start httpd systemctl status httpd curl 172.20.3.82 # 返回html文本则httpd服务已经okhttpd默认服务文件夹 /var/www/html 在默认服务文件夹下新建一个文件夹来放安装源,分别创建属于centos6/7/8的文件夹 mkdir -p /var/www/html/centos/{6,7,8}/os/x86_64 挂载需要安装的光盘镜像到目录 centos6:mount /dev/sr0 /var/www/html/centos/6/os/x86_64 centos7:mount /misc/cd /var/www/html/centos/7/os/x86_64 centos8:mount /misc/cd /var/www/html/centos/8/os/x86_64 实验使用如下镜像 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Ddrf0Kdp-1691195491148)(png/2019-11-12-16-02-11.png)] 在httpd默认服务目录新建文件夹存放kickstart文件 mkdir -p /var/www/html/centos/ksdir 2.使用相应的工具生成kickstart文件 centos6 在centos6可以使用system-config-kickstart工具在图形界面下完成配置并保存为ks.cfg文件 Basic Configuration:基本设置包括默认安装语言键盘类型时区和root密码设置等。 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-s5rWESkD-1691195491149)(png/2019-11-12-16-25-49.png)] Installation Method:安装方式本次使用全新安装通过http安装http服务器 就是第一步中的centos7地址为:172.20.3.82;httpd服务的默认服务文件夹为 /var/www/html,此处HTTP Directory:/centos/6/os/x86_64就指明了位于默认服务文件夹 的安装源,需要安装不同的版本就更改路径的相应版本号(/centos/6/os/x86_64----安装centos6/centos/7/os/x86_64----安装centos7等) [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-acSYjTzW-1691195491149)(png/2019-11-12-16-32-34.png)] Boot Loader Options:引导加载器选项此次安装使用默认设置也不加密GRUB [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-nSqdXsjd-1691195491149)(png/2019-11-12-16-36-31.png)] Partition Information:分区信息:1.清除需要安装系统的主机硬盘的MBR2.清除所有分区3.初始化磁盘标签 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Mlw6m0iC-1691195491150)(png/2019-11-12-16-39-30.png)] Network Configuration:网络设置 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-uG6ng2UB-1691195491150)(png/2019-11-12-16-42-52.png)] Authentication:认证相关设置–默认 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tyRnN3wv-1691195491150)(png/2019-11-12-16-47-20.png)] Firewall Configuration:防火墙和selinux设置,都禁用 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pyp75xSA-1691195491151)(png/2019-11-12-16-44-10.png)] Display Configuration:显示设置–使用默认设置 Package Selection:需要安装的包选择 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-KTIAYNSE-1691195491151)(png/2019-11-12-16-48-14.png)] Pre-Installation Script:定义系统安装前运行的脚本,此脚本出错可能会导致kickstart安装失败一定不要有%pre字眼出现在该脚本中,此次就不定义该脚本了 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ieK1O7ZK-1691195491151)(png/2019-11-12-16-49-28.png)] Post-Installation Script:定义系统安装完成后运行的脚本,此处新增一个用户并改密码 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-KCmGiyhr-1691195491151)(png/2019-11-12-16-51-12.png)] 保存为ks.cfg [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-9eHYg39T-1691195491151)(png/2019-11-12-17-01-26.png)] mv /root/Desktop/ks.cfg /root/Desktop/ks6.cfg 生成的ks6.cfg 文件如下 #platformx86, AMD64, or Intel EM64T #versionDEVEL # Firewall configuration firewall --disabled # Install OS instead of upgrade install # Use network installation url --urlhttp://172.20.3.82/centos/6/os/x86_64 # Root password rootpw --iscrypted $1$5xUPBe9B$xxjgPTHBELXz3gFnh1CnG1 # System authorization information auth --useshadow --passalgosha512 # Use graphical install graphical firstboot --disable # System keyboard keyboard us # System language lang en_US # SELinux configuration selinux --disabled # Installation logging level logging --levelinfo# System timezone timezone Africa/Abidjan # Network information network --bootprotostatic --deviceeth0 --gateway172.20.3.1 --ip172.20.3.112 --nameserver144.144.144.144 --netmask255.255.255.0 --onbooton # System bootloader configuration bootloader --locationmbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part / --fstypeext4 --size10240 part /boot --fstypeext4 --size1024 part /data --fstypeext4 --noformat --size10240%post useradd stevenux echo 123456 | passwd --stdin stevenux %endcentos7 在centos7可以使用新安装的系统root家目录的anaconda-ks.cfg文件作为参考来制作自己的ks.cfg文件anaconda-ks.cfg #versionDEVEL # X Window System configuration information xconfig --startxonboot # License agreement eula --agreed # System authorization information auth --enableshadow --passalgosha512 # Use CDROM installation media cdrom # Use graphical install graphical # Run the Setup Agent on first boot firstboot --enable # System services services --enabledchronyd # Keyboard layouts keyboard --vckeymapus --xlayoutsus # System language lang en_US.UTF-8ignoredisk --only-usesda # Network information network --bootprotodhcp --deviceens33 --ipv6auto --activate network --hostnamecentos7.magedu.steve# Root password rootpw --iscrypted $6$eVvngMuBXKQoRxLX$d81c7rQwWgxqpAQqdhNQkATgrEZ3dcOJZHdq0BFWUJKoIQqqyEbt6TNInJcDqpzdKVjt04ugeELJ4iPB16f7a/ # System timezone timezone Asia/Shanghai --isUtc user --groupswheel --namesteve --password$6$ZlPoWuI/1P9uqNnj$iAjc6KxTms0.snDrgyQvwZTasCeRQHl3aD67Mi0A58kkeW.MXMFAZNIwOSYF/7ii5aso1F5p0EWz4WQhJyfy21 --iscrypted --uid100 0 --gecossteve --gid1000 # System bootloader configuration bootloader --locationmbr --boot-drivesda # Partition clearing information clearpart --none --initlabel # Disk partitioning information part swap --fstypeswap --ondisksda --size3072 part / --fstypexfs --ondisksda --size102400 part /boot --fstypexfs --ondisksda --size1024 part /data --fstypexfs --ondisksda --size51200%packages ^gnome-desktop-environment base compat-libraries core desktop-debugging development dial-up directory-client fonts gnome-desktop guest-agents guest-desktop-agents input-methods internet-browser java-platform multimedia network-file-system-client networkmanager-submodules print-client security-tools smart-card system-admin-tools x11 chrony%end%addon com_redhat_kdump --disable --reserve-mbauto %end%anaconda pwpolicy root --minlen6 --minquality1 --notstrict --nochanges --notempty pwpolicy user --minlen6 --minquality1 --notstrict --nochanges --emptyok pwpolicy luks --minlen6 --minquality1 --notstrict --nochanges --notempty %end复制一份来更改cp anaconda-ks.cfg ks7.cfg更改后的ks7.cfg如下 #platformx86, AMD64, or Intel EM64T #versionDEVEL # Install OS instead of upgrade install # Keyboard layouts keyboard us # Root password rootpw --iscrypted $1$q5kgkOfe$9uxwxHzrapS5h4J.9XJ8c1 # Use network installation url --urlhttp://172.20.3.82/centos/7/os/x86_64 # System language lang en_US # System authorization information auth --useshadow --passalgosha512 # Use text mode install text # SELinux configuration selinux --disabled # Do not configure the X Window System skipx# Firewall configuration firewall --disabled # Network information network --bootprotostatic --deviceens33 --gateway172.20.3.1 --ip172.20.3.111 --nameserver144.144.144.144 --netmask255.255.255.0 # Reboot after installation reboot # System timezone timezone Asia/Shanghai # System bootloader configuration bootloader --locationmbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part /boot --fstypeext3 --size1024 part / --fstypexfs --size10240 part /data --fstypexfs --size10240%post useradd stevenux echo 123456 | passwd --stdin stevenux %endcentos8 在centos8亦可以使用新安装的系统root家目录的anaconda-ks.cfg文件作为参考来制作自己的ks.cfg文件复制一份来更改cp anaconda-ks.cfg ks8.cfg更改后的ks8.cfg文件内容 #versionRHEL8 ignoredisk --only-usesda # Partition clearing information zerombr text rebootclearpart --all --initlabelfirewall --disabled selinux --disabled# Use graphical installrepo --nameAppStream --baseurlhttp://172.20.3.82/centos/8/os/x86_64/AppStream # Use CDROM installation media # cdrom # url --url http:// # Keyboard layouts keyboard --vckeymapus --xlayoutsus # System language lang en_US.UTF-8 # Network information # network --bootprotostatic --deviceens160 --gateway172.20.3.1 --ip172.20.3.113 --nameserver144.144.144.144 --netmask255.255.255.0 --onbooton network --bootprotodhcp --deviceens160 --ipv6auto --activate network --hostnamecentos8.localdomain # Root password rootpw --iscrypted $6$JrooqXF37Q2lI4si$05OlIYoqLH8uV/1CqvCJUReL5POu9XL5Z2olZ7FtiQYVi1zKCZgDqbBTc.gLnT7trUBX55xGS6MX8bKx0VLKv1 # X Window System configuration information # xconfig --startxonboot # Run the Setup Agent on first bootfirstboot --enable # Do not configure the X window system skipx # System services services --disabledchronyd # System timezone timezone Asia/Shanghai --isUtc --nontp user --namesteve --password$6$NsKlQVGMrkJgfJtr$1CZdKd0XAokuHgutLdDI9SVVw3wit0L55OLiQDdwd9bQw2b4ElQYUDGp0tl.GUl2y9oaa4GSfmewktOu8m5my1 --iscrypted --gecossteve # Disk partitioning information part / --fstypexfs --ondisksda --size10240 part /data --fstypexfs --ondisksda --size10240 part swap --fstypeswap --ondisksda --size2048 part /boot --fstypeext4 --ondisksda --size1024%packages ^minimal-environment kexec-tools%end%addon com_redhat_kdump --enable --reserve-mbauto%end%anaconda pwpolicy root --minlen6 --minquality1 --notstrict --nochanges --notempty pwpolicy user --minlen6 --minquality1 --notstrict --nochanges --emptyok pwpolicy luks --minlen6 --minquality1 --notstrict --nochanges --notempty %end%post useradd stevenux echo 123456 | passwd --stdin stevenux %end 注意本次三个系统都使用网络安装在指定安装源时centos8的语法与centos7和centos6的不同,原因是centos8更改了一些软件包的组织方式 centos6:url --urlhttp://172.20.3.82/centos/6/os/x86_64 centos7:url --urlhttp://172.20.3.82/centos/7/os/x86_64 centos8:repo --nameAppStream --baseurlhttp://172.20.3.82/centos/8/os/x86_64/AppStream3.完成kickstart文件配置和安装源服务器搭建后就可以在不同的主机测试自动安装了 例如安装centos7 1.在VMware中新建一个安装centos7的虚拟机,可以配置成下图的样子其中光盘使用CentOS-7-x86_64-DVD-1804.iso;VMnet0为桥接网络(与安装源服务器同网段) [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-vW1tYkg4-1691195491152)(png/2019-11-12-17-26-30.png)] 2.挂载的centos7镜像CentOS-7-x86_64-DVD-1804.iso用来引导安装 3.开机在VMware出现进度条是按一下Esc键进入选择硬件启动页面选择光盘启动 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-fR2edb9A-1691195491152)(png/2019-11-12-17-30-19.png)] 4.光盘引导界面类似下面的图 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-JXCB7ZgX-1691195491152)(png/2019-11-12-17-32-20.png)] 5.进入光盘引导界面后按Esc键可以进入另一个字符界面用来接收引导参数,以决定以怎样的安装方式进行系统安装(字符还是图形界面安装等)也可以指定从安装源服务器读取kickstart文件(ks.cfg)按照该文件的定义来进行自动安装本次实验就在该字符界面指定ks文件在远程安装源服务器的地址让其自动安装。 6.按Esc键后进入这个界面 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-nr0S2Xef-1691195491153)(png/2019-11-12-17-44-07.png)] 7.指定ks文件路径 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-jf1DMGak-1691195491153)(png/2019-11-12-17-45-26.png)] 上面红框中的linux参数在光盘下/isolinux/isolinux.cfg文件中定义表示如下意思 label linuxmenu label ^Install CentOS 7 # 表示安装centos7kernel vmlinuz # 内核为vmlinuzappend initrdinitrd.img inst.stage2hd:LABELCentOS\x207\x20x86_64 quiet # 内核参数指定
http://www.hkea.cn/news/14500153/

相关文章:

  • 重庆专业企业建设网站高端建站属于外包公司么
  • 湟源县wap网站建设公司2345系统导航
  • 东莞免费做网站化工行业网站模板
  • ps企业站网站做多大电商平面设计前景如何
  • php外贸网站制作科技咨询公司
  • 建设部评职称查询网站凡科网首页
  • ps做营销型网站布局wordpress标签tags页
  • 全球建站电子上网站开发
  • 我的世界做披风网站网址大全4399
  • 网站建设与规划实训总结东莞响应式网站实力乐云seo
  • 中山网站建设哪家好网络营销是什么加什么
  • 济南企业建站平台ios开发者选项
  • 新注册公司网站怎么做会员卡管理系统哪里买
  • 丹阳网站建设厦门企业网站建设公司
  • 建一个网站难不难wordpress 当前页码
  • 宜城建设局网站wordpress扁平模板
  • 谷歌seo网站优化网络营销知识点
  • vps里面设置了一下读取和写入网站无法显示了wordpress主题 qux
  • 如何查看网站开发源码ai绘图网页版免费
  • 个人网站搭建网站建站如何做seo
  • 网站后台添加查看爬虫的痕迹wordpress 自定义主题
  • 怎么iis设置网站织梦做商城类网站好做吗
  • 网站建设定制公司推荐做网站考虑的方面
  • 做网站添加本地图片湖北建设网站四库一平台
  • 外贸公司网站多少钱有没有做高仿手表的网站
  • 山东城乡建设部网站首页麻涌做网站
  • 长沙百度做网站多少钱有比wordpress更好的吗
  • 1个月能学好网站开发吗网站关键词收录查询
  • 做的比较好的旅行网站怎样让google收录网站
  • 专业网站建设价格大全公司网站制作定制