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

微网站怎么注册账号2023中国500强排名

微网站怎么注册账号,2023中国500强排名,广西排名前十的模板厂,友情链接是免费的吗一、kickstart简介 kickstart是红帽发行版中的一种安装方式#xff0c;它通过以配置文件的方式来记录linux系统安装的各项参数和想要安装的软件。只要配置正确#xff0c;整个安装过程中无需人工交互参与#xff0c;达到无人值守安装的目的。 二、kickstar文件的生成 进入/…一、kickstart简介 kickstart是红帽发行版中的一种安装方式它通过以配置文件的方式来记录linux系统安装的各项参数和想要安装的软件。只要配置正确整个安装过程中无需人工交互参与达到无人值守安装的目的。 二、kickstar文件的生成 进入/root目录找到模板anaconda-ks.cfg根据模板编辑kickstar文件检测kickstar语法错误 [rootwestosa ~]# cat westos.cfg #versionRHEL8 #ignoredisk --only-usevda autopart --typelvm# Partition clearing information clearpart --all --initlabel# Use graphical install #graphical text# Use CDROM installation media #cdro url --urlhttp://172.25.254.100/westos# Keyboard layouts keyboard --vckeymapus --xlayoutsus# System language lang en_US.UTF-8 # Network information network --bootprotodhcp --deviceenp1s0 --onbootno --ipv6auto --no-activate network --hostnamelocalhost.localdomain repo --nameAppStream --baseurlhttp://172.25.254.100/westos/AppStream# Root password #rootpw --plant westos rootpw --iscrypted $6$xPOQGqf3UsUPjuV5$wMByLsY60INgTbIO.VgyD8lawrmDlzXTaVkHeSiFjYxywVxzvfLX9uprA66CnugTo5m9mzW9fgAio3fkR1Bih/# X Window System configuration information xconfig --startxonboot# Run the Setup Agent on first boot #firstboot --enable firstboot --disable# System services services --disabledchronyd # System timezone timezone Asia/Shanghai --isUtc --nontpreboot%packages base firefox %end%post touch /mnt/westosfile{1..10} %end [rootwestosa ~]# 1. 进目录找模板 [rootwestosa ~]# cd /root/ [rootwestosa ~]# ls anaconda-ks.cfg Documents fstab Music Public Videos Desktop Downloads initial-setup-ks.cfg Pictures Templates [rootwestosa ~]# cp anaconda-ks.cfg westos.cfg [rootwestosa ~]# ls anaconda-ks.cfg Documents fstab Music Public Videos Desktop Downloads initial-setup-ks.cfg Pictures Templates westos.cfg [rootwestosa ~]# vim westos.cfg 2. 编辑kickstar文件 具体编辑步骤如下 一定要仔细否则后续无法安装 注意加密密码如何生成 ps:所有文件连接必须都可以在浏览器打开 例如 3.检测kickstar语法错误 安装检测软件检测没有反应则语法正确 [rootwestosa ~]# dnf search kickstar Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:43:22 ago on Sun 30 Jul 2023 06:52:16 PM CST.Name Summary Matched: kickstar pykickstart.noarch : Python utilities for manipulating kickstart files. python3-kickstart.noarch : Python 3 library for manipulating kickstart files. [rootwestosa ~]# dnf install -y pykickstart.noarch Updating Subscription Management repositories.检测方法ksvalidator 脚本名 [rootwestosa ~]# ksvalidator westos.cfg The following problem occurred on line 21 of the kickstart file:Unexpected arguments to lang command: [--addaupportzh_CN.UTF-8]出现错误修改脚本再次检测没有错误了ps:只能检测出语法错误 [rootwestosa ~]# ksvalidator westos.cfg [rootwestosa ~]# 三、 部署安装所需环境 搭建好软件仓库建立共享目录/var/www/html/westos共享镜像资源安装httpd和dhcp服务关闭火墙共享ks脚本复制ks脚本到共享目录修改权限配置dhcp服务之前学过 以上全部在虚拟机westosa上完成!! 1. 搭建软件仓库 首先要有镜像资源从主机发送到虚拟机发现虚拟机内存不够因此可以通过挂载设备发送 首先需要一块10G的硬盘镜像为7.9G。然后分区 将该设备挂载在/iso目录 然后发送镜像成功 [rootwestosa ~]# cd /iso/ [rootwestosa iso]# ls rhel-8.2-x86_64-dvd.iso [rootwestosa iso]# 新建共享目录将镜像挂载在该目录上 249 mkdir /var/www/html/westos250 mount /iso/rhel-8.2-x86_64-dvd.iso /var/www/html/westos/编辑配置文件保证文件都可以打开则软件仓库配置成功 [rootwestosa ~]# cd /etc/yum.repos.d/ [rootwestosa yum.repos.d]# ls redhat.repo westos.repo [rootwestosa yum.repos.d]# cat westos.repo [AppStream] nameAppStream baseurlhttp://172.25.254.100/westos/AppStream gpgcheck0 gpgkey/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled1[BaseOS] nameBaseOS baseurlhttp://172.25.254.100/westos/BaseOS gpgcheck0 gpgkey/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled1[rootwestosa yum.repos.d]# 2. 共享镜像资源 安装httpd和dhcp服务并且关闭火墙开启httpd服务 245 dnf install httpd dhcp-server -y246 systemctl enable --now httpd247 systemctl status httpd248 systemctl disable --now firewalld3. 共享ks脚本修改权限 共享ks脚本到共享目录保证主机都可以看见 252 cp westos.cfg /var/www/html/253 chmod 644 /var/www/html/westos.cfg 共享结果如下 4. 配置dhcp服务 在westosa为dhcp服务器在上面配置dhcp服务保证其他主机有ip可以访问共享目录 254 dnf search dhcp255 cat /etc/dhcp/dhcpd.conf 256 cp /usr/share/doc/dhcp-server/dhcpd.conf.example /etc/dhcp/dhcpd.conf257 vim /etc/dhcp/dhcpd.conf258 systemctl restart dhcpd259 systemctl enable --now dhcpddhcp的配置文件如下认真不要写错 [rootwestosa dhcp]# cat dhcpd.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd ## option definitions common to all supported networks... option domain-name westos.org; option domain-name-servers 172.25.254.100;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.10 172.25.254.20;#option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; }[rootwestosa dhcp]# 四、测试 测试ks脚本 在虚拟机管理界面创建新的虚拟机 1. 选择创建方式 2. 填写镜像及ks脚本目录 后续就是分配内存大小等和之前创建虚拟机一样 填写完成后等待加载。。。。。如果出现错误检查ks脚本和dhcp配置 加载完成后可以登陆用户进入/mnt目录发现有10个文件 证明成功
http://www.hkea.cn/news/14574461/

相关文章:

  • 如何做查询网站网站排名突然下降
  • 一般网站推广要多少钱cf网站编程
  • 苏州建设局网站首页昆明专业网站建设的公司
  • 商城购物网站建设企业做网站报价
  • 电子商务与网络营销免费网站分析seo报告是坑吗
  • 个人+网站可以做导航吗酷维网站模版
  • 江门网站设计网站建设任职要求
  • 做网站排名需要多少钱wordpress 显示友情链接
  • oa协同办公系统平台网站建设优化经验
  • 网站设计 重庆招代理的网站建设公司
  • 包头建站百度登陆页面
  • 网站站内优化哈尔滨做网站的价格
  • 做h的小说网站外贸网站建设官网
  • 南宁做棋牌网站的公司网站开发过程有几个阶段
  • 手机网站功能建设网站作用
  • wordpress 站群插件qq做兼职给网站给你
  • o2o是什么意思通俗讲解萍乡网站优化
  • 去哪里做网站安全等级保护级别秦皇岛市人口
  • 做网站安全的公司有哪些免费自建手机网站
  • 厦门市建设局网站文件北京工商注册网官网
  • 网站导航网址大全中信建设有限责任公司属于央企吗
  • 怎么做高端网站包装设计是什么
  • 做什么样的网站做印章的网站
  • 南京专业制作网站网站怎么做百度认证
  • 网站推广指标网站死链怎么解决
  • 手机如何做网站网站建设汇报书 ppt
  • 一个云主机可以做多少网站网站 换图片
  • 违禁网站用什么浏览器企业营销网站模板免费下载
  • 广西住房和城乡建设厅网站证件一天能赚100元的app
  • 运城市住房和城乡建设部网站怎么做自己的发卡网站