摘要:#!/bin/bashexport OS_PROJECT_DOMAIN_ID=defaultexport OS_USER_DOMAIN_ID=defaultexport OS_PROJECT_NAME=adminexport OS_TENANT_NAME=adminexport OS_USERNAM...
阅读全文
开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发. |
12 2015 档案
摘要:#!/bin/bashexport OS_PROJECT_DOMAIN_ID=defaultexport OS_USER_DOMAIN_ID=defaultexport OS_PROJECT_NAME=adminexport OS_TENANT_NAME=adminexport OS_USERNAM...
阅读全文
摘要:https://repos.fedorapeople.org/repos/openstack/openstack-kilo/
阅读全文
摘要:gpg: no valid OpenPGP data found
阅读全文
摘要:http://xiaoli110.blog.51cto.com/1724/1617541
阅读全文
摘要:and运算符就是所谓的布尔运算符,连接两个布尔值,并且在两者都为真时返回真,否则 返回假,or not 可以随意结合真值短路逻辑 short-circuit logic 惰性求值 lazy evaluation raw_input 返回值为真 断言,条件后可以添加字符串,用来解释断言x = 1Yes...
阅读全文
摘要:[CentOS]安装软件:/lib/ld-linux.so.2: bad ELF interpreter解决环境:[orangle@localhost Downloads]$ uname -m&&uname -rx86_642.6.32-220.el6.x86_64[orangle@localhos...
阅读全文
摘要:TypeError: unorderable types:str() = 1: print('Great!') else: print('Wrong!')else: print('Wrong!')
阅读全文
摘要:没有指定model type关键字,e1000模拟的是Intel公司的千兆网卡,8139模拟的是早期Realtek公司百兆网卡多数使用libVirt 管理来宾系统pps packet per second带宽,每秒发包数服务器承载的是游戏 or web 需要大量收发小包的业务,
阅读全文
摘要:一 Linux安装文件Linux常见的安装为tar,zip,gz,rpm,deb,bin等。我们可以简单的分为三类,第一:打包或压缩文件tar,zip,gz等,一般解压后即可,或者解压后运行sh文件;第二:对应的有管理工具的deb,rpm等,通常的这类安装文件可以通过第三方的命令行或UI来简单的安装...
阅读全文
摘要:Indentationerror unexpected indent;Unicode字符串是书写国际文本的标准方法,如果你要用你的母语书写文本,那么你必须要有一个Unicode编辑器r 自然字符串按字面意义级连字符串一定要用自然字符串处理正则表达式,既可以存储信息,也可以对它们进行操作方法 变量 值...
阅读全文
摘要:字符串格式化:求模操作符%可以用来将其他值转换为包含转换标志的字符串,对值进行不同方法的格式化,左右对齐,字段宽度精度,增加符号,左填充数字字符串方法join split istitle capitalize将值分组到一个结构,并且通过编号对其进行引用通过名字 引用值 数据结构数据类型--映射map...
阅读全文
摘要:1,Running command: env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes ca-certificates2,Running command: apt-get -q update3,Running com...
阅读全文
摘要:ssh -CT -o BatchMode=yes 用户名@主机名
阅读全文
摘要:ssh-copy-id 'username@ip/hostname';
阅读全文
摘要:右操作数是元组,每个元素都会被单独格式化,每个值都需要一个对应的转换说明符;%字最小字段宽度,转换后的字符串符:标记转换说明符的开始转换标志,-左对齐 ,+表示转换值之前加正负号""空白字符-表示正数之前保留空格,0表示转换值若位数不够则用0填充d,i带符号的十进制整数o 不带符号的八进制u 不带符...
阅读全文
摘要:格式化字符串的%s部分称为转换说明符(conversion specifier)标记了需要插入转换值位置s表示值会被格式化为字符串,如果不是字符串,则会用str将其转换为字符串格式化 实数-浮点数,可以使用f说明符类型,同时提供所需要的精度:句点+希望保留小数位数-因为格式化说明符总是以表示类型的字...
阅读全文
摘要:Access Control ListsAccess Control Lists (ACLs) allows you to assign different permissions for different users or groups even though they do not corre...
阅读全文
摘要:1,元组:不可变序列元组与列表一样,也是一种序列,唯一的不同是元组不能修改,字符串也不能修改,创建元组的语法很简单,如果你用逗号分隔了一些值,那么你就自动创建了元组2,如何实现包括一个值的元组,必须加个逗号,即使只有一个值元组就是靠逗号来标识的,只添加圆括号没用(42)和42完全一样,但是一个逗号却...
阅读全文
该文被密码保护。
摘要:xfsprogs官方文档快速配置步骤Installing GlusterFS - a Quick Start GuidePurpose of this documentThis document is intended to give you a step by step guide to sett...
阅读全文
摘要:方法一源码包要求是使用 automake 进行编译管理的。安装路径不能指定为 /usr/local 下的目录,否则生成 deb 包期间报错。制作的工具是 dh-make ,如果没有安装,要先安装:sudo apt-get install dh-make以 c-icap 为例:# cd c-icap-...
阅读全文
摘要:
阅读全文
摘要:常用的APT命令参数: apt-cache search package 搜索包 apt-cache show package 获取包的相关信息,如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package ...
阅读全文
摘要:unexpected error ConnectionError object has no attributeCentOS yum cache/etc/yum.confkeepcache = 1
阅读全文
摘要:The simplest way to support this in your image is to install the cloud-utils package (contains the growpart tool for extending partitions), the cloud-...
阅读全文
摘要:制作镜像的时候默认分的是30G空间qemu-img create -f raw centos.img 30G看官网文档安装完系统需要安装cloud-init和clout-utils包,本人安装了完这个工具但是发现启动系统以后,root根分区开机只能自动扩展到900G或者500G。后来经查需要使用GP...
阅读全文
摘要:Installing GlusterFor RPM based distributions, if you will be using InfiniBand, add the glusterfs RDMA package to the installations. For RPM based sys...
阅读全文
摘要:Installing GlusterFS - a Quick Start GuidePurpose of this documentThis document is intended to give you a step by step guide to setting up GlusterFS f...
阅读全文
摘要:https://hub.docker.com/
阅读全文
摘要:1,开始点的元素(最左边元素)包括在结果中,而结束点的元素(最右边的元素)则不在分片之内当使用负数点-开始索引大于结束点2,分片倒序索引从-1开始,根据步长及开始及结束索引,同时需注意负数为分片索引时 分片的方向与正数为索引时的方向是相反的!!len函数返回序列中所包含元素数量,min函数和max函...
阅读全文
摘要:missing parentheses in call to print ==> python高版本 print("")name 'raw_input' is not defined >>版本原因 >3.5.1 整合input 和raw_input函数print() 打印包含数字的字符串可以,但是不...
阅读全文
该文被密码保护。
摘要:The Glance Image CacheThe Glance API server may be configured to have an optional local image cache. A local image cache stores a copy of image files,...
阅读全文
该文被密码保护。
该文被密码保护。
摘要:在linux系统中,使用dd命令制作启动盘成功。方法是在终端中输入命令: dd if=/root/opensuse.iso of=/dev/sdb bs=4M 说明: 1、opensuse.iso--iso镜像文件的文件名,可根据实际情况修改 2、/dev/sdb--是u盘的位置和设备名称,可根据实...
阅读全文
摘要:http://pan.baidu.com/s/1o7lxofg
阅读全文
摘要:1, openstack虚拟实例备份之--多镜像格式多镜像文件合并为一个镜像文件衍生-差异镜像文件 /var/lib/nova/instances/b0abc22f-1a73-4079-b1bc-2aa28f43b952/disk衍生基本镜像文件 /var/lib/nova/instances/_b...
阅读全文
该文被密码保护。
摘要:https://ask.openstack.org/en/question/84652/cannot-create-instance-via-horizon/
阅读全文
摘要:#!/bin/bash# To use an Openstack cloud you need to authenticate against keystone, which# returns a **Token** and **Service Catalog**. The catalog con...
阅读全文
摘要:A number of periodic processes run on the OpenStack Image service to support caching
阅读全文
摘要:查看您的ECS没有100.64.0.0/10网段的路由。 Linux 相关的OS添加方法参考: 注:下文的 gateway_ip 请根据实际情况替换 1)查看GATEWAY IP cat /etc/sysconfig/network |grep GATEWAY 下面的gateway_ip需要替换成上...
阅读全文
摘要:apt-get update && apt-get upgrade;v
阅读全文
摘要:OpenStack packages¶Distributions release OpenStack packages as part of the distribution or using other methods because of differing release schedules....
阅读全文
|