centos one key,centos镜像
其实centos one key的问题并不复杂,但是又很多的朋友都不太了解centos镜像,因此呢,今天小编就来为大家分享centos one key的一些知识,希望可以帮助到大家,下面我们一起来看看这个问题的分析吧!
干货| 手把手教你搭建一套OpenStack云平台
今天我们为一位朋友搭建一套OpenStack云平台。
我们使用Kolla部署stein版本的OpenStack云平台。
kolla是用于自动化部署OpenStack的一个项目,它基于docker和ansible来实现;docker主要负责镜像制作、容器管理。而ansible主要负责环境的部署和管理。
由于我个人笔记本性能有限,因此本次实验采用all-in-one模式部署,即所有服务都部署在一台主机上。其实只要all-in-one模式熟练部署,多节点部署上手很快的。
接下来,让我们一步步进行OpenStack云平台的搭建:
1)主机网卡配置
2)关闭防火墙、selinux及libvirtd服务
3)安装epel源
4)CentOS部分常用软件安装
5)配置主机名及hosts文件
6)同步时间
7)配置 pip镜像源,方便快速下载python库
1)安装基础包
2)升级pip版本,不后期安装会有报警
3)安装docker-ce
4)指定docker镜像加速器
5)设置docker volume卷挂载方式
6)重启使配置生效
1)安装ansible
2)下载kolla及kolla-ansible代码
3)手动安装kolla-ansible
4)安装kolla-ansible需要依赖包
5)安装kolla需要依赖包
6)拷贝配置文件
配置文件解释:
6)生成随机密码
使用kolla提供的密码生成工具自动生成OpenStack各服务的密码,如果密码不填充,后面的部署环境检查时不会通过的。
7)修改随机密码文件
8)修改globals.yml配置文件
1)生成SSH Key,并授信本节点
2)配置单节点all-in-one配置文件
3)带有kolla的引导服务器部署依赖关系
执行结果如下:
4)对主机执行预部署检查
执行结果如下:
5)拉取OpenStack镜像
我们看下它在执行什么
正在下载OpenStack镜像,等等哦
聪明的小伙伴会趁它在自动部署过程中,思考下当命令敲下去以后它都做了哪些操作
6)执行OpenStack部署
7)验证部署
执行结果如下,则说明您的OpenStack环境已部署成功!Congratulations!
我们也生成了admin用户的凭证,即/etc/kolla/admin-openrc.sh文件
我们看下该凭证:
在浏览器中输入:192.168.1.251
用户名:admin
密码:123123
登录密码我们在passwords.yml中指定为123123,在实际生产环境中可不能设置这么简单哦。
到此已完成OpenStack云平台的部署,明天我们再来讨论下OpenStack云平台基本使用方法及利用OpenStack客户端命令创建一台测试云主机。
别看我搭建这么顺利呀,真到你部署了,可能会满屏报错哦。一定要细心,一不留神就会出现如下情况:
linux虚拟机怎么安装vmware tools
Linux VMware Tools安装步骤简易版
Linux VMware Tools安装估计有点困难,我也在网上看了好多版本的Linux安装VMware Tools,方法都一样。但是自己在安装过程中,还是遇到了点问题。但是最终还是搞定。我运行的是VMware workstation 8.0.4, OS: CentOS 6.0
1.在CD-ROM虚拟光驱中选择使用ISO镜像,找到VMWARE TOOLS安装文件,如C:\program\VMware\VMware Workstation\Programs\linux.iso
当然这个ISO是你安装VMware workstation的目录下的Linux.iso,不是你的Linux OS镜像文件。VMware Tools一般都在这个文件里。
2.以管理员身份进入Linux,root账号
3.退出到windows,在虚拟机菜单栏中点击虚拟机->安装 VMWARE TOOLS子菜单,会弹出对话框,点击"确认"安装
4.挂载光驱:Mount-t iso9660/dev/cdrom/mnt
加载CDROM设备,这是如果进入/mnt目录下,你会发现一个文件:
VMwareTools-8.8.4-743747.tar.gz
这个就死VMware Tools的Linux软件包,也是我们刚才使用的WinISO打开的Liunx.ISO
有的虚拟机上估计执行mount/dev/cdrom/mnt/cdrom
如果提示如下错误,挂载点不存在。,[root@localhost/]#mount/dev/cdrom/mnt/cdrom
mount: mount point/mnt/cdrom dose not exist
请直接执行此命令:
mount/dev/cdrom/opt
cd/opt
或者应该可以使用自动挂载,直接进入
cd/misc/cd
5. copy此文件到临时文件夹
cp/mnt/mVMwareTools-8.8.4-743747.tar.gz/tmp
6.卸载CDROM,执行 umount/dev/cdrom
7.进入tmp文件目录并解压此文件包
cd/tmp
tar zxf vmware-linux-tools.tar.gz
解压默认到vmware-tools-distrib目录下:此时你可以使用ls-ll查看文件夹下的文件
8.进入vmware-tools-distrib,安装vmware tools.
./vmware-install.pl执行安装,
安装过程中他会一步一步的有问题回应,此过程中,你遇到后面显示[yes],[no],[yes][no]的直接输入yes,然后回车。其他的问题不管[]里面是什么,直接回车就好了,不要输入。
9.大约5分钟左右安装完成。执行init 6重启ok。
Linux VMware Tools安装步骤图文版,大家可以参考下
展台搭建机器视觉系统 windows7旗舰版电脑重装系统 arm9开发板科比球鞋机器视觉
虚拟机制作网页网页制作模板展台搭建科比球鞋电脑系统重装 windows7旗舰版
虚拟机网站开发安德玛篮球鞋展台搭建网站设计网站设计公司 html5网页模板
网站开发安卓软件开发电脑装win7系统 ios编程入门苹果刷机外置显卡现在做什么赚钱
html5网站 u盘安装系统 html5模板单片机电脑重装系统女装免费代理展台搭建
近视眼恢复恢复删除文件二合一平板电脑 u盘安装系统平板电脑排行榜 jordan电话呼叫系统
操作过程如下:
[root@localhost~]# cd/
[root@localhost/]# ls
bin dev home lost+found misc net proc sbin srv tftpboot usr
boot etc lib media mnt opt root selinux sys tmp var
[root@localhost/]# cd/media
[root@localhost media]# ls
VMware Tools
[root@localhost media]# cd VMware\ Tools/
[root@localhost VMware Tools]# ls
manifest.txt VMwareTools-8.1.3-203739.tar.gz
[root@localhost VMware Tools]# cp VMwareTools-8.1.3-203739.tar.gz/tmp
[root@localhost VMware Tools]# cd/tmp
[root@localhost tmp]# ls
gconfd-root scim-helper-manager-socket-root
keyring-lbbFvv scim-panel-socket:0-root
mapping-root scim-socket-frontend-root
orbit-root ssh-FmnVlj2751
scim-bridge-0.3.0.lockfile-0@localhost:0.0 virtual-root.ZxmHUV
scim-bridge-0.3.0.socket-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz
[root@localhost tmp]# tar-zxf VMwareTools-8.1.3-203739.tar.gz
[root@localhost tmp]# ls
gconfd-root scim-panel-socket:0-root
keyring-lbbFvv scim-socket-frontend-root
mapping-root ssh-FmnVlj2751
orbit-root virtual-root.ZxmHUV
scim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-8.1.3-203739.tar.gz
scim-bridge-0.3.0.socket-0@localhost:0.0 vmware-tools-distrib
scim-helper-manager-socket-root
[root@localhost tmp]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
bin doc etc FILES INSTALL installer lib vmware-install.pl
[root@localhost vmware-tools-distrib]#./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin] yes
The path"yes" is a relative path. Please enter an absolute path.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories(rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
The path"/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
yes
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path"yes" is a relative path. Please enter an absolute path.
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path"/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
The installation of VMware Tools 8.1.3 build-203739 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:"/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command:"/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定]
Virtual Printing daemon: [确定]
Unmounting HGFS shares: [确定]
Guest filesystem driver: [确定]
Found a compatible pre-built module for vmmemctl. Installing it...
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
Found a compatible pre-built module for vmblock. Installing it...
[EXPERIMENTAL] The VMware FileSystem Sync Driver(vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
Found a compatible pre-built module for vmxnet3. Installing it...
Found a compatible pre-built module for pvscsi. Installing it...
Detected X.org version 7.1.
Host resolution detected as"1440 x 900".
Please choose one of the following display sizes that X will start with:
[1]"320x200"
[2]"320x240"
[3]"400x300"
[4]"512x384"
[5]"640x400"
[6]"640x480"
[7]"720x480"
[8]"800x480"
[9]"854x480"
[10]"720x576"
[11]"800x600"
[12]"1024x768"
[13]"1280x720"
[14]"1280x768"
[15]"1152x864"
[16]"1280x800"
[17]<"1366x768"
Please enter a number between 1 and 17:
[17] 12
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-128.1.16.el5 i686 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-164.el5#1 SMP Tue Aug 18 15:51:54 EDT 2009 i686
Build Date: 22 July 2009
Build ID: xorg-x11-server 1.1.1-48.67.el5
Before reporting problems, check
to make sure that you have the latest version.
Module Loader present
Markers:(--) probed,(**) from config file,(==) default setting,
(++) from command line,(!!) notice,(II) informational,
(WW) warning,(EE) error,(NI) not implemented,(??) unknown.
(++) Log file:"/tmp/vmware-config0/XF86ConfigLog.16172", Time: Thu Apr 1 02:40:28 2011
(++) Using config file:"/tmp/vmware-config0/XF86Config.16172"
The XKEYBOARD keymap compiler(xkbcomp) reports:
> Warning: Multiple symbols for level 1/group 1 on key
> Using XF86Sleep, ignoring XF86Standby
> Warning: Symbol map for key redefined
> Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
X is running fine with the new config file.
FreeFontPath: FPE"unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [确定]
Paravirtual SCSI module: [确定]
Guest filesystem driver: [确定]
Mounting HGFS shares: [失败]
Guest memory manager: [确定]
Guest vmxnet fast network device: [确定]
VM communication interface: [确定]
VM communication interface socket family: [确定]
Blocking file system: [确定]
File system sync driver: [确定]
Guest operating system daemon: [确定]
Virtual Printing daemon: [确定]
The configuration of VMware Tools 8.1.3 build-203739 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.
To enable advanced X features(e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one(or more) of the following:
1. Manually start/usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
Enjoy,
--the VMware team
Found VMware Tools CDROM mounted at/media/VMware Tools. Ejecting device
/dev/hdc...
[root@localhost vmware-tools-distrib]#
Centos6.5中如何用sqlite3命令打开’.db’后缀的数据库执行sql
1.简单sql语句使用:
在任意目录下新建一个数据库,比如student。
命令: sqlite3 student.db
出现如下提示:
输入sql语句create table user(username text primary key, password text);建一张user表
输入sql语句insert into user values("baoli","123");插入一条数据。
输入sql语句select* from user;可以查看user表.
输入sql语句delete from user where username=‘baoli‘;删除指定的一个记录。
注:输入sql命令是记得结尾的‘;‘号。
2. SQLite支持如下5种数据类型
1.NULL:空值。
2.INTEGER:带符号的整型,具体取决有存入数字的范围大小。
3.REAL:浮点数字,存储为8-byte IEEE浮点数。
4.TEXT:字符串文本。
5.BLOB:二进制对象。
3.一些常用命令
查看当前数据库的所有数据表:.tables
查看当前所有数据库:.databases
打开或创建一个表:sqlite3 test.db
可视化打开数据库:sqlitebrowser student.db
注:需要:sudo apt-get install sqlitebrowser
Centos6.5中如何用sqlite3命令打开’.db’后缀的数据库执行sql
标签:bordercentos6.5删除reftps创建后缀oneinto