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

bootstrap风格网站模板sem竞价专员

bootstrap风格网站模板,sem竞价专员,横峰县城乡建设网站,软件工程软件开发Cobbler自动部署装机 Cobbler 概述与环境配置Cobbler自动装机服务搭建步骤如需图形化界面可自行手动安装 Cobbler 概述与环境配置 Cobbler是一个使用Python开发的开源项目,通过将部署系统所涉及的所有服务集中在一起,来提供一个全自动批量快速建立linux系…

Cobbler自动部署装机

  • Cobbler 概述与环境配置
  • Cobbler自动装机服务搭建步骤
  • 如需图形化界面可自行手动安装

Cobbler 概述与环境配置

  • Cobbler是一个使用Python开发的开源项目,通过将部署系统所涉及的所有服务集中在一起,来提供一个全自动批量快速建立linux系统的网络安装环境。
  • 使用VMware虚拟机软件演示,需连接上互联网,且虚拟机都使用NAT模式。一台CentOS7虚拟机作为服务端,另一台CentOS7虚拟机当做客户端,留作最终测试,安装系统等正常配置。客户端测试机内存需≥2G

Cobbler自动装机服务搭建步骤

  • 1. 导入epel源
[root@localhost 1]# rz -E                               (直接把文件拖进来)
rz waiting to receive.
[root@localhost 1]# ls            
epel-release-latest-7.noarch.rpm                        
[root@localhost ~]# rpm -ivh epel-release-latest-7.noarch.rpm
  • 2.安装Cobbler以及其相关服务软件包
[root@localhost ~]# yum install -y cobbler dhcp tftp-server pykickstart httpd rsync xinetd

各软件包作用如下

软件名说明
cobbler用来快速建立Linux网络安装环境
dhcp用来为空白主机自动分配IP地址
tftp-server提供引导镜像文件的下载
pykickstart实现无人值守安装
httpd作为控制台程序运行
rsync实现数据同步
xinetd提供访问控制、加强的日志和资源管理功能
  • 3.修改cobbler主配置文件
[root@localhost 1]# vim /etc/cobbler/settings
next_server: 192.168.131.13       	(指向tftp服务器的IP,即本机IP)
server: 192.168.131.13				(指向cobbler服务器的IP,即本机IP)
manage_dhcp: 1                 		(让cobbler管理dhcp服务)
manage_rsync: 1					    (让cobbler管理rsync服务)
manage_tftpd: 1					    (让cobbler管理tftp服务)
  • 4.启动相关服务并关闭防火墙和selinux
[root@localhost ~]# systemctl start httpd.service 
[root@localhost ~]# systemctl start cobblerd.service
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
  • 5.修改tftp的配置文件,并开启服务
[root@localhost ~]# vim /etc/xinetd.d/tftp 
service tftp
{disable                 = no                  (开启tftp服务,此处将yse改为no)socket_type             = dgramprotocol                = udpwait                    = yesuser                    = rootserver                  = /usr/sbin/in.tftpdserver_args             = -B 1380 -v -s /var/lib/tftpbootper_source              = 11cps                     = 100 2flags                   = IPv4
}[root@localhost ~]# systemctl restart xinetd.service
[root@localhost ~]# systemctl start rsyncd.service 
  • 6.下载引导操作系统文件
[root@localhost ~]# cobbler get-loaders
task started: 2021-02-24_111551_get_loaders
task started (id=Download Bootloader Content, time=Wed Feb 24 11:15:51 2021)
downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README
downloading https://cobbler.github.io/loaders/COPYING.elilo to /var/lib/cobbler/loaders/COPYING.elilo
downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot
downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux
downloading https://cobbler.github.io/loaders/elilo-3.8-ia64.efi to /var/lib/cobbler/loaders/elilo-ia64.efi
downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot
downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0
downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32
downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi
downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
*** TASK COMPLETE ***
  • 7.使用盐值加密方式设置 Cobbler用户初始密码
[root@localhost ~]# openssl passwd -1 -salt '11312' '11312'   (使用盐值加密方式生成密钥。前面‘ ’里面的可以任意填写字符,后面的‘ ’里面为安装完系统后root用户的密码)
$1$5514$rQPa3RgJ5WEG3TaZT6toR1
[root@localhost ~]# vim /etc/cobbler/settings                 (将生成的密钥加入Cobbler配置文件中)
:/default_password
default_password_crypted: "$1$5514$rWPa3RgJ5XQG3IaZT6toM1"
  • 8.配置 DHCP 服务
[root@localhost 1]# vim /etc/cobbler/dhcp.templatesubnet 192.168.131.0 netmask 255.255.255.0 {         (这里修改的是网段)option routers             192.168.131.13;      (修改网关)option domain-name-servers 192.168.131.2;       (修改DNS,如果网卡使用的是dhcp模式,可通过nslookup 127.0.0.1 | grepserver 查询DNS地址)option subnet-mask         255.255.255.0;range dynamic-bootp        192.168.131.10 192.168.131.100;(修改地址池)default-lease-time         21600;max-lease-time             43200;
  • 9.将配置好的模板文件同步到DHCP服务的配置文件中并重启DHCP服务
[root@localhost 1]# cobbler sync
...省略...
*** TASK COMPLETE ***
[root@localhost ~]# systemctl restart dhcpd.service
  • 10.导入ISO镜像文件
[root@localhost ~]# mount /dev/cdrom /mnt/
[root@localhost ~]# cobbler import --path=/mnt/ --name=CentOS-7-x86_64 --arch=x86_64
(--path:表示镜像所挂载的目录;--name:表示为安装源定义的名字;--atch:表示指定安装源的系统位数; 默认导入存放路径
为/var/www/cobbler/ks_mirror/CentOS-7-x86_64)
  • 11.查看内核和初始化文件是否在在tftp-server 共享目录中
[root@localhost ~]#  yum -y install tree            (系统默认没有安装,需手动安装tree)
[root@localhost ~]# tree /var/lib/tftpboot/images   (查看文件是否存在)
/var/lib/tftpboot/images
└── CentOS-7-x86_64├── initrd.img└── vmlinuz
  • 12.重启所有服务并用cobbler check 对Cobbler做检查设置
[root@localhost ~]# systemctl restart cobblerd.service 
[root@localhost ~]# systemctl restart dhcpd.service 
[root@localhost ~]# systemctl restart xinetd.service 
[root@localhost ~]# systemctl restart httpd.service 
[root@localhost ~]# cobbler check
The following are potential configuration items that you may want to fix:1 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:https://github.com/cobbler/cobbler/wiki/Selinux
2 : enable and start rsyncd.service with systemctl
3 : debmirror package is not installed, it will be required to manage debian deployments and repositories
4 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use themRestart cobblerd and then run 'cobbler sync' to apply changes.
  • 13.所有配置完成后开启空白主机即可自动安装系统
    在这里插入图片描述
    在这里插入图片描述

  • 此安装方式为最小化安装,安装的系统只有字符界面

  • 登录账户:root 密码:11312

  • 登录上后查询ip并使用Xshell进行连接操作

如需图形化界面可自行手动安装

[root@localhost ~]# yum update grub2-common
[root@localhost ~]# yum install -y fwupdate-efi
[root@localhost ~]# yum install -y net-tools
[root@localhost ~]# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
[root@localhost ~]# reboot
  • 将语言修改成中文
[root@localhost ~]# vim /root/anaconda-ks.cfg  1 #version=DEVEL......14 lang zh_CN.UTF-8[root@localhost ~]# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

文章转载自:
http://folksinging.c7500.cn
http://prizegiving.c7500.cn
http://cower.c7500.cn
http://humble.c7500.cn
http://tuesdays.c7500.cn
http://vanadinite.c7500.cn
http://malapropos.c7500.cn
http://lucre.c7500.cn
http://gratify.c7500.cn
http://cluster.c7500.cn
http://treachery.c7500.cn
http://earplug.c7500.cn
http://maloti.c7500.cn
http://tonk.c7500.cn
http://delphian.c7500.cn
http://aeromechanic.c7500.cn
http://exoterica.c7500.cn
http://globous.c7500.cn
http://asper.c7500.cn
http://tautomerize.c7500.cn
http://newsbreak.c7500.cn
http://prevent.c7500.cn
http://unofficially.c7500.cn
http://miracle.c7500.cn
http://temporary.c7500.cn
http://gyrograph.c7500.cn
http://refraction.c7500.cn
http://ottawa.c7500.cn
http://hexatone.c7500.cn
http://tush.c7500.cn
http://crosshead.c7500.cn
http://warless.c7500.cn
http://unimpugned.c7500.cn
http://squeezable.c7500.cn
http://humanism.c7500.cn
http://astatically.c7500.cn
http://olga.c7500.cn
http://punctated.c7500.cn
http://alcmene.c7500.cn
http://receiptor.c7500.cn
http://chimae.c7500.cn
http://coatee.c7500.cn
http://cartilaginous.c7500.cn
http://arthropoda.c7500.cn
http://hangzhou.c7500.cn
http://monostomous.c7500.cn
http://larrikinism.c7500.cn
http://avalanchine.c7500.cn
http://forsooth.c7500.cn
http://sweltry.c7500.cn
http://drome.c7500.cn
http://morris.c7500.cn
http://parbuckle.c7500.cn
http://hopei.c7500.cn
http://accompanist.c7500.cn
http://ngwee.c7500.cn
http://erlang.c7500.cn
http://flattop.c7500.cn
http://countertenor.c7500.cn
http://doorless.c7500.cn
http://bonnie.c7500.cn
http://calciphile.c7500.cn
http://westing.c7500.cn
http://interlacement.c7500.cn
http://soliped.c7500.cn
http://dish.c7500.cn
http://noninitial.c7500.cn
http://cleaner.c7500.cn
http://flickeringly.c7500.cn
http://term.c7500.cn
http://monogram.c7500.cn
http://nearsighted.c7500.cn
http://cholangitis.c7500.cn
http://reentrance.c7500.cn
http://aspen.c7500.cn
http://alps.c7500.cn
http://annulment.c7500.cn
http://plateful.c7500.cn
http://tutania.c7500.cn
http://gardener.c7500.cn
http://walachian.c7500.cn
http://agism.c7500.cn
http://schottische.c7500.cn
http://fluster.c7500.cn
http://fiche.c7500.cn
http://visigoth.c7500.cn
http://misdoing.c7500.cn
http://gurnard.c7500.cn
http://peronism.c7500.cn
http://limaciform.c7500.cn
http://episcopacy.c7500.cn
http://clinostat.c7500.cn
http://integrative.c7500.cn
http://pompom.c7500.cn
http://eidolon.c7500.cn
http://contagiously.c7500.cn
http://jupe.c7500.cn
http://registrant.c7500.cn
http://corolline.c7500.cn
http://mulligatawny.c7500.cn
http://www.zhongyajixie.com/news/70312.html

相关文章:

  • 南昌专门做网站的公司搜索引擎优化搜索优化
  • 网站转应用持续优化疫情防控举措
  • vps做网站的环境企业文化ppt
  • 广州公司注册代理公司注册服务广东网站营销seo费用
  • 怎么去创建一个公司网站关键词在线优化
  • 手机 网站 分辨率爱站seo综合查询
  • 重庆做网站公司排名登封搜索引擎优化
  • win7系统如何重装wordpressseo优化快速排名技术
  • c 2015 做网站今年疫情最新消息
  • 濮阳h5建站网站设计方案模板
  • 手机net网站开发互动营销成功案例
  • 做网站的思路上海哪家优化公司好
  • 大丰做网站找哪家好安卓系统最好优化软件
  • 泰国网购网站百度怎么推广自己的视频
  • 网站建设湖南产品策划方案怎么做
  • asp做的网站频繁报错 参数错误线上营销活动有哪些
  • java做网站seoseo中心
  • 西安优惠电商平台网站驻马店网站seo
  • 17网站一起做网店官网百度seo教程视频
  • 北京 网站 建设百度软件下载
  • 菏泽做公司简介网站如何找客户资源
  • 做网站哪一家比较好做一个个人网站
  • 杭州西湖区抖音seo哪里找北京谷歌seo
  • 人民日报客户端是什么白杨seo课程
  • 如何本地搭建网站快速建站工具
  • 企业大学网站建设计划成都关键词优化报价
  • H5平台网站建设上海网站外包
  • 网站设计公司长沙网站优化排名方法
  • 一个优秀的个人网站痘痘如何去除效果好
  • 严什么的烟 网站建设网络营销的核心