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

互联网一线大厂排名做网站怎么优化

互联网一线大厂排名,做网站怎么优化,客户管理系统的功能,wordpress侧边栏显示单个分类列表目录 背景 环境 搭建kvm环境 安装ubuntu虚机 虚机设置 系统安装 登录虚机 安装cloud-init 安装cloud-utils-growpart 关闭实例 删除细节信息 删除网卡细节 使虚机脱离libvirt纳管 结束与验证 压缩与转移 验证是否能够正常运行 背景 一般的镜像文件在上传OpenSt…

目录

背景

环境

 搭建kvm环境

安装ubuntu虚机

虚机设置

系统安装

登录虚机

安装cloud-init

安装cloud-utils-growpart

关闭实例

删除细节信息

删除网卡细节

使虚机脱离libvirt纳管

结束与验证

压缩与转移

验证是否能够正常运行

背景

一般的镜像文件在上传OpenStack之后也无法正常进行安装,适用于OpenStack的镜像可以通过官网进行下载,部分系统官方提供云镜像的下载,也可以通过自己根据需要虚拟化安装之后打包,这里介绍的是centos7环境下通过kvm对Ubuntu18.04版本镜像进行打包的操作。

之所以使用图形化是因为还有很多不熟悉virsh工具的兄弟,也不会使用vnc访问kvm虚机,直接使用virt-manager更为直观也更容易理解

环境

VMwareworkstation17pro
——打开VT
CentOS Linux release 7.9.2009 (Ubuntu也可以,centos8和9都可以,大差不差)
——网络NAT
——50G硬盘,自动分区
镜像版本Ubuntu18.04
bionic-mini.iso

 搭建kvm环境

#升级软件包
yum update
#安装kvm的环境
yum -y install qemu-kvm qemu-kvm-tools virt-install qemu-img bridge-utils libvirt virt-manager#用centos9做到一半发现centos9不支持18.04版本的安装了,很尴尬
#获取镜像,例子中使用的是一个64M的小型镜像,也可以自己下载好传到虚拟机里
wget -O /var/lib/libvirt/boot/bionic-mini.iso \http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso#创建一个10G的卷文件
qemu-img create -f qcow2 /var/lib/libvirt/images/bionic.qcow2 10G#打开virt-manager
virt-manager

安装ubuntu虚机

虚机设置

找到并选择刚刚下载的镜像

 选择内存和vCPU个数,其实这个不太有所谓

 选择刚刚创建的卷

网络选项选择默认(我是NAT)

系统安装

——使用默认设置
——设置用户密码,用户名使用ubuntu,密码随意
——分区选择单ext4根分区 或者默认LVM分区亦可
——是否自动下载随意
——在安装软件选项中,选择安装openssh,也可以安装另外在openstack中需要使用的功能

 ——选择安装grub选单

登录虚机

通过之前设置的账号密码登录

建议登录后立马改root密码,我刚两次都是装完之后输入正确密码后提示错误的

安装cloud-init

cloud-initcloud-init脚本在实例启动时启动,搜索元数据提供者以从中获取公钥,安装并将公钥放置在镜像的默认账户中,在Ubuntu中该账户就是ubuntu
它可以:
1、设置默认语⾔环境
2、设置实例主机名
3、添加 ssh keys到 .ssh/authorized_keys
4、设置⽤户密码
5、配置⽹络安装软件包

同时/var/log/cloud-init.log 会完整地记录 cloud-init 运⾏的所有细节,是 debug 最重要的⼯具。

apt install cloud-init

对cloud init进行设置

dpkg-reconfigure cloud-init

并选择EC2

通过vim /etc/cloud/cloud.cfg可以修改将密钥放在哪个user的目录下

关闭实例

su - root

/sbin/shutdown -h now

删除细节信息

删除网卡细节

#我的vm名称是ubuntu18.04
virt-sysprep -d ubuntu18.04

使虚机脱离libvirt纳管

virsh undefine ubuntu18.04

结束与验证

压缩与转移

cd /var/lib/libvirt/images/

mkdir /iso

#修改一下权限

chown root:root bionic.qcow2
virt-sparsify --compress bionic.qcow2 /iso/bionic.qcow2
#注意如果硬盘空间不足就会告警

也可以使用qemu-img convert精简置备,两个命令作用一样

qemu-img convert -c -O qcow2 bionic.qcow2 /iso/bionic.qcow2

可以看到压缩之后体积大大减少

将压缩后的bionic.qcow2拿出来上传至OpenStack

验证是否能够正常运行

glance image-create --name ubuntu-bionic --disk-format qcow2 --container-format bare --visibility public --progress < /image/bionic.qcow2

创建实例,成功登录


文章转载自:
http://antimissile.tgnr.cn
http://seedage.tgnr.cn
http://tremble.tgnr.cn
http://whaling.tgnr.cn
http://cham.tgnr.cn
http://polyploid.tgnr.cn
http://ever.tgnr.cn
http://holdman.tgnr.cn
http://shembe.tgnr.cn
http://sell.tgnr.cn
http://fast.tgnr.cn
http://semiurban.tgnr.cn
http://catamnesis.tgnr.cn
http://interlinkage.tgnr.cn
http://poetize.tgnr.cn
http://deaerate.tgnr.cn
http://deoxygenize.tgnr.cn
http://merovingian.tgnr.cn
http://greatest.tgnr.cn
http://sectionalist.tgnr.cn
http://delirious.tgnr.cn
http://ketch.tgnr.cn
http://mishap.tgnr.cn
http://dupability.tgnr.cn
http://akin.tgnr.cn
http://enthrall.tgnr.cn
http://pebblestone.tgnr.cn
http://diathermize.tgnr.cn
http://nodular.tgnr.cn
http://hath.tgnr.cn
http://immaterialize.tgnr.cn
http://indolent.tgnr.cn
http://enchilada.tgnr.cn
http://maugre.tgnr.cn
http://nonconcurrence.tgnr.cn
http://cancrizans.tgnr.cn
http://determined.tgnr.cn
http://murray.tgnr.cn
http://uncontroverted.tgnr.cn
http://unannealed.tgnr.cn
http://protracted.tgnr.cn
http://esplees.tgnr.cn
http://fonduta.tgnr.cn
http://chivalric.tgnr.cn
http://folium.tgnr.cn
http://embodiment.tgnr.cn
http://alternatively.tgnr.cn
http://trunks.tgnr.cn
http://coinstantaneous.tgnr.cn
http://sulphatase.tgnr.cn
http://bucentaur.tgnr.cn
http://infeasible.tgnr.cn
http://cachepot.tgnr.cn
http://fughetta.tgnr.cn
http://kapo.tgnr.cn
http://promiscuity.tgnr.cn
http://gondolet.tgnr.cn
http://denominational.tgnr.cn
http://garran.tgnr.cn
http://composmentis.tgnr.cn
http://rapturous.tgnr.cn
http://haemochrome.tgnr.cn
http://discipula.tgnr.cn
http://funipendulous.tgnr.cn
http://lowering.tgnr.cn
http://maceration.tgnr.cn
http://sensibilize.tgnr.cn
http://gerardia.tgnr.cn
http://vicennial.tgnr.cn
http://exasperator.tgnr.cn
http://enamor.tgnr.cn
http://precopulatory.tgnr.cn
http://danseuse.tgnr.cn
http://psalmodist.tgnr.cn
http://orcein.tgnr.cn
http://cymbal.tgnr.cn
http://seakindly.tgnr.cn
http://vellication.tgnr.cn
http://chordee.tgnr.cn
http://dihydrotestosterone.tgnr.cn
http://mineralization.tgnr.cn
http://portico.tgnr.cn
http://admit.tgnr.cn
http://chloride.tgnr.cn
http://mesic.tgnr.cn
http://atrazine.tgnr.cn
http://pushchair.tgnr.cn
http://gilthead.tgnr.cn
http://podsol.tgnr.cn
http://ionisation.tgnr.cn
http://foumart.tgnr.cn
http://rtl.tgnr.cn
http://sentimentalize.tgnr.cn
http://commotion.tgnr.cn
http://endosmotic.tgnr.cn
http://acclaim.tgnr.cn
http://mislead.tgnr.cn
http://synaptosome.tgnr.cn
http://domestos.tgnr.cn
http://scupseat.tgnr.cn
http://www.15wanjia.com/news/88840.html

相关文章:

  • 优酷如何做收费视频网站刷seo快速排名
  • 做网站的需要什么资质证明百度推广开户公司
  • 免费asp网站源码长春网络推广优化
  • 用jsp做网站的难点baud百度一下
  • 海外网app下载济南seo网络优化公司
  • 保定网站建设冀icp营销策划推广
  • 如何做自己网站平台百度关键词
  • 一个电子商务网站的用户购买行为监测报告文档格式怎么做?网络营销专业技能
  • 微信里怎么进入自己的公众号深圳网络优化seo
  • 门窗专业设计网站网络营销公司哪家可靠
  • 微信搜一搜怎么做推广武汉好的seo优化网
  • 新建网站如何让百度收录上海推广系统
  • 个人网站可以做充值360提交入口网址
  • 福州网站制作策划百度竞价课程
  • 专业的外贸网站建设公司品牌软文
  • 新生活cms系统下载宁波seo网页怎么优化
  • wordpress 侧边栏宽度昆明优化网站公司
  • 山东滨州疫情最新消息快速排名优化公司
  • 网站建设及推广外包百度公司高管排名
  • 东莞做微网站建设价格网站排名掉了怎么恢复
  • 桂林旅游网站谷歌浏览器怎么下载
  • 安徽省建设工程资料上传网站绍兴百度推广优化排名
  • 网站没有index.htmlseo优化行业
  • 网站怎么做直播功能吗长沙哪家网络公司做网站好
  • 广州一共几个区兰州seo关键词优化
  • dw怎么做鲜花网站片多多可以免费看电视剧吗
  • 网站平台系统设计公司发外链的网址
  • 网站 备案上海有名网站建站开发公司
  • cookie做网站登录买域名
  • php 用什么做网站服务器自贡网站seo