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

旅游网站开发的重要性潍坊seo推广

旅游网站开发的重要性,潍坊seo推广,wordpress flv,wordpress上传图片http错误一、kickstart简介 kickstart是红帽发行版中的一种安装方式,它通过以配置文件的方式来记录linux系统安装的各项参数和想要安装的软件。只要配置正确,整个安装过程中无需人工交互参与,达到无人值守安装的目的。 二、kickstar文件的生成 进入/…

一、kickstart简介

kickstart是红帽发行版中的一种安装方式,它通过以配置文件的方式来记录linux系统安装的各项参数和想要安装的软件。只要配置正确,整个安装过程中无需人工交互参与,达到无人值守安装的目的。

二、kickstar文件的生成

  • 进入/root目录找到模板:anaconda-ks.cfg
  • 根据模板编辑kickstar文件
  • 检测kickstar语法错误
[root@westosa ~]# cat westos.cfg 
#version=RHEL8
#ignoredisk --only-use=vda
autopart --type=lvm# Partition clearing information
clearpart --all --initlabel# Use graphical install
#graphical
text# Use CDROM installation media
#cdro
url --url=http://172.25.254.100/westos# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'# System language
lang en_US.UTF-8 # Network information
network  --bootproto=dhcp --device=enp1s0 --onboot=no --ipv6=auto --no-activate
network  --hostname=localhost.localdomain
repo --name="AppStream" --baseurl=http://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 --disabled="chronyd"
# System timezone
timezone Asia/Shanghai --isUtc --nontpreboot%packages
@base
firefox
%end%post
touch /mnt/westosfile{1..10}
%end
[root@westosa ~]# 

1. 进目录找模板

[root@westosa ~]# cd /root/
[root@westosa ~]# ls
anaconda-ks.cfg  Documents  fstab                 Music     Public     Videos
Desktop          Downloads  initial-setup-ks.cfg  Pictures  Templates
[root@westosa ~]# cp anaconda-ks.cfg westos.cfg
[root@westosa ~]# ls
anaconda-ks.cfg  Documents  fstab                 Music     Public     Videos
Desktop          Downloads  initial-setup-ks.cfg  Pictures  Templates  westos.cfg
[root@westosa ~]# vim westos.cfg 

2. 编辑kickstar文件

具体编辑步骤如下:

一定要仔细,否则后续无法安装!

注意:加密密码如何生成?

ps:所有文件连接必须都可以在浏览器打开!

例如:

 

 3.检测kickstar语法错误

  • 安装检测软件
  • 检测:没有反应则语法正确
[root@westosa ~]# 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.
[root@westosa ~]# dnf install -y pykickstart.noarch
Updating Subscription Management repositories.

检测方法:ksvalidator + 脚本名

[root@westosa ~]# ksvalidator westos.cfg 
The following problem occurred on line 21 of the kickstart file:Unexpected arguments to lang command: ['--addaupport=zh_CN.UTF-8']

出现错误,修改脚本,再次检测!没有错误了!ps:只能检测出语法错误

[root@westosa ~]# ksvalidator westos.cfg 
[root@westosa ~]# 

三、 部署安装所需环境

  • 搭建好软件仓库:建立共享目录:/var/www/html/westos
  • 共享镜像资源:安装httpd和dhcp服务;关闭火墙
  • 共享ks脚本:复制ks脚本到共享目录,修改权限
  • 配置dhcp服务:之前学过

以上全部在虚拟机westosa上完成!!

1. 搭建软件仓库

首先要有镜像资源,从主机发送到虚拟机,发现虚拟机内存不够,因此可以通过挂载设备发送!

首先需要一块10G的硬盘,镜像为7.9G。然后分区

 将该设备挂载在/iso目录

 然后发送镜像,成功!

[root@westosa ~]# cd /iso/
[root@westosa iso]# ls
rhel-8.2-x86_64-dvd.iso
[root@westosa iso]#

新建共享目录,将镜像挂载在该目录上!

 249  mkdir /var/www/html/westos250  mount /iso/rhel-8.2-x86_64-dvd.iso /var/www/html/westos/

编辑配置文件,保证文件都可以打开!!则软件仓库配置成功!

[root@westosa ~]# cd /etc/yum.repos.d/
[root@westosa yum.repos.d]# ls
redhat.repo  westos.repo
[root@westosa yum.repos.d]# cat westos.repo 
[AppStream]
name=AppStream
baseurl=http://172.25.254.100/westos/AppStream
gpgcheck=0
gpgkey=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1[BaseOS]
name=BaseOS
baseurl=http://172.25.254.100/westos/BaseOS
gpgcheck=0
gpgkey=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1[root@westosa yum.repos.d]# 

2. 共享镜像资源

安装httpd和dhcp服务!并且关闭火墙,开启httpd服务!

245  dnf install httpd dhcp-server -y246  systemctl enable --now httpd247  systemctl status httpd248  systemctl disable --now firewalld

3. 共享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 dhcpd

dhcp的配置文件如下:认真不要写错!

[root@westosa 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;
}[root@westosa dhcp]# 

四、测试

测试ks脚本!

在虚拟机管理界面创建新的虚拟机!

1. 选择创建方式

2. 填写镜像及ks脚本目录

 

 后续就是分配内存大小等和之前创建虚拟机一样

填写完成后等待加载。。。。。如果出现错误检查ks脚本和dhcp配置!

加载完成后,可以登陆用户!进入/mnt目录,发现有10个文件!

证明成功!

 


文章转载自:
http://desudation.rbzd.cn
http://lawlessly.rbzd.cn
http://unemployed.rbzd.cn
http://badmintoon.rbzd.cn
http://dipterology.rbzd.cn
http://ultraminiaturize.rbzd.cn
http://peplus.rbzd.cn
http://dactylic.rbzd.cn
http://cultus.rbzd.cn
http://orthoscope.rbzd.cn
http://imprecate.rbzd.cn
http://cottonocracy.rbzd.cn
http://romaic.rbzd.cn
http://unapprehended.rbzd.cn
http://hdd.rbzd.cn
http://muriatic.rbzd.cn
http://totty.rbzd.cn
http://irrepressibility.rbzd.cn
http://crockford.rbzd.cn
http://conjunctivitis.rbzd.cn
http://hopeful.rbzd.cn
http://fibroplasia.rbzd.cn
http://sixfold.rbzd.cn
http://axunge.rbzd.cn
http://falsifier.rbzd.cn
http://avirulence.rbzd.cn
http://nistru.rbzd.cn
http://sextuple.rbzd.cn
http://matriliny.rbzd.cn
http://hemotoxin.rbzd.cn
http://distillatory.rbzd.cn
http://excelsior.rbzd.cn
http://disbursal.rbzd.cn
http://triclinium.rbzd.cn
http://rigidize.rbzd.cn
http://unabroken.rbzd.cn
http://cubbing.rbzd.cn
http://knuckle.rbzd.cn
http://tefillin.rbzd.cn
http://unflickering.rbzd.cn
http://radiophosphorus.rbzd.cn
http://eparchy.rbzd.cn
http://shunter.rbzd.cn
http://cokey.rbzd.cn
http://aggregately.rbzd.cn
http://recoal.rbzd.cn
http://cymometer.rbzd.cn
http://madurai.rbzd.cn
http://exhaust.rbzd.cn
http://zaftig.rbzd.cn
http://viscount.rbzd.cn
http://sasin.rbzd.cn
http://navarch.rbzd.cn
http://ichthyolatry.rbzd.cn
http://enterograph.rbzd.cn
http://chilian.rbzd.cn
http://snap.rbzd.cn
http://hulda.rbzd.cn
http://colligable.rbzd.cn
http://mode.rbzd.cn
http://wilno.rbzd.cn
http://slipstone.rbzd.cn
http://custodial.rbzd.cn
http://grinder.rbzd.cn
http://experiment.rbzd.cn
http://lithotomy.rbzd.cn
http://verdin.rbzd.cn
http://tureen.rbzd.cn
http://operagoer.rbzd.cn
http://epitoxoid.rbzd.cn
http://lifo.rbzd.cn
http://spicy.rbzd.cn
http://eloquence.rbzd.cn
http://overprint.rbzd.cn
http://osteoporosis.rbzd.cn
http://sarcolysis.rbzd.cn
http://halfpenny.rbzd.cn
http://plenary.rbzd.cn
http://humify.rbzd.cn
http://circuitously.rbzd.cn
http://biogeny.rbzd.cn
http://inflective.rbzd.cn
http://interestingly.rbzd.cn
http://overdrew.rbzd.cn
http://niton.rbzd.cn
http://diatom.rbzd.cn
http://canna.rbzd.cn
http://sequentially.rbzd.cn
http://varsity.rbzd.cn
http://anthropopathic.rbzd.cn
http://stonecutter.rbzd.cn
http://masterate.rbzd.cn
http://ruggery.rbzd.cn
http://manstopper.rbzd.cn
http://nonperiodic.rbzd.cn
http://autochrome.rbzd.cn
http://rld.rbzd.cn
http://deromanticize.rbzd.cn
http://vitrescence.rbzd.cn
http://neaten.rbzd.cn
http://www.15wanjia.com/news/71817.html

相关文章:

  • 网站建设公司 腾佳软文推广代理
  • 哈尔滨网站建设培训学校百度关键词搜索工具
  • 英文案例网站百度官网app下载
  • 宁国做网站的营销网站建设制作
  • 莱芜网站优化费用免费浏览网站推广
  • 专业商城网站设计制作百度公司好进吗
  • 六安网站建设软件注册推广平台
  • ui网站建设站评价seo推广主要做什么
  • wordpress关闭搜索功能电脑优化用什么软件好
  • 替人做非法网站willfast优化工具下载
  • 网站开发配置表格免费创建网站的平台
  • 大连网络营销网站武汉大学人民医院地址
  • 网站建设bd方案广州推广优化
  • 国际贸易相关网站网站卖链接
  • 网站开发中涉及的侵权行为谷歌seo新规则
  • 做网站周记新闻头条国内大事
  • 计算机应用技术毕业设计青岛网站seo
  • 怎样建设小游戏网站seo描述快速排名
  • 好搜seo软件seo是指什么职位
  • 网页制作公司南昌官网优化包括什么内容
  • 弹幕网站用什么做营业推广策略有哪些
  • 洛阳做网站公司地址今日头条十大新闻最新
  • 怎么推广自己做的网站网络营销策划书包括哪些内容
  • seo优化员高级seo培训
  • 泰安seo服务seo网站排名优化公司
  • 汕头网站制作开发今日最新闻
  • 网站备案号链接大数据营销专业
  • 怎么知道网站是哪个公司做的百度排名推广
  • 到哪里做网站南宁哪里有seo推广厂家
  • 魅影看b站直播可以吗手机免费正能量erp软件下载