Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1779087
  • 博文数量: 276
  • 博客积分: 1574
  • 博客等级: 上尉
  • 技术积分: 2894
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-26 23:23
个人简介

生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光

文章分类

全部博文(276)

文章存档

2017年(17)

2016年(131)

2015年(63)

2013年(2)

2012年(32)

2011年(31)

发布时间:2016-03-21 15:46:43

点击(此处)折叠或打开#!/usr/bin/env python#-*- coding:utf-8 -*-'''python基础教程第2版 20 项目1:即时标记主要使用正则将一段文本转换成有格式的'''import sys,re.........【阅读全文】

阅读(1174) | 评论(0) | 转发(0)

发布时间:2016-03-21 14:46:56

python基础教程第二版 9 :魔法方法,属性,迭代器新类与旧类构造方法:对象被创建后立即执行的方法 __init__    class 类名:        def __init__(self):            self.属性=值每个类都可以有多个超类,它们从超类那里继承方法.9.7 生成器.........【阅读全文】

阅读(1150) | 评论(0) | 转发(0)

发布时间:2016-03-20 19:32:17

[root@192-168-166-119 ~]# docker push 192.168.166.220:5000/centosmyregistryThe push refers to a repository [192.168.166.220:5000/centosmyregistry] (len: 1)unable to ping registry endpoint https://192.168.166.220:5000/v0/v2 ping attempt failed with error: Get https://192.168.166.220:5000/v2/: tls:.........【阅读全文】

阅读(10886) | 评论(0) | 转发(0)

发布时间:2016-03-20 09:33:18

病毒表现:网络流量暴满,疯狂地向香港的一个IP发数据,同时在top里面表现为随机的10位字母的进程,看/proc里面的信息,则为ls,cd之类常见的命令,CPU利用率也在top之首。杀死该进程后,会再随机产生一个新的进程。查找步骤:一、/proc/_pid/cmdline里面都是伪造的信息,ps显示的内容也一样,基本上为下面一些常见的命.........【阅读全文】

阅读(1980) | 评论(0) | 转发(0)

发布时间:2016-03-18 17:31:57

python基础教程第二版 7 更加抽象:类类是python的核心概念对象(object)+数据操作方法=面向对象程序设计对象优点:多态,封装,继承绑定到对象特性上的函数称为方法(method).对象有自己的状态,对象的状态由它的特性描述.继承是另外一个懒惰的行为.类可以看做一种对象的集合,子类就是这个对象的子集A{B{}},A是B的超类,B.........【阅读全文】

阅读(1028) | 评论(0) | 转发(0)

发布时间:2016-03-17 22:33:46

警告Red Hat Enterprise Linux OpenStack Platform 软件仓库中的一些软件包和 Extra Packages for Enterprise Linux(EPEL)软件仓库提供的软件包有冲突。在启用了 EPEL 软件包仓库的系统上使用 Red Hat Enterprise Linux OpenStack Platform 不被支持。.........【阅读全文】

阅读(1206) | 评论(0) | 转发(0)

发布时间:2016-03-17 00:12:44

Python基础教程第2版 6:抽象http://blog.chinaunix.net/uid-21142030-id-5676171.html抽象与结构,事件流程创建函数是组织程序的关键.def使用函数改变数据结构(比如list,dict)是将程序抽象化的好方法.函数定义中的参数是形参函数调用中的参数是实参函数通过参数获取值.函数内部作用域修改.........【阅读全文】

阅读(1143) | 评论(0) | 转发(0)

发布时间:2016-03-16 15:21:25

首先安装ovirt-shell[root@192-168-174-42 ~]# yum install -y ovirt-engine-cli.noarch客户端与engine manager通信使用tls/ssl 证书加密.下载engine manager的证书并导入客户端的证书库.官方给出了三种方式获取证书:1.命令行下载curl或wget[root@192-168-174-42 ~]# wget -O ovirt.cer http://ovirt.skyovirt.com/ca..........【阅读全文】

阅读(4019) | 评论(1) | 转发(0)

发布时间:2016-03-15 22:58:50

点击(此处)折叠或打开#!/usr/bin/env python#-*- coding:utf-8 -*-'''斐波那契数列:初始为0,1,列表中的一个数字是前两个元素的和'''fibs=[0,1]for i in range(100):    f.........【阅读全文】

阅读(3989) | 评论(0) | 转发(0)

发布时间:2016-03-14 16:00:38

创建glusterfs卷ISO作为ISO存储域[root@ovirthost14.skyovirt.com ~]# gluster volume create ISO replica 3 192.168.184.11:/opt/ISO 192.168.184.13:/opt/ISO 192.168.184.14:/opt/ISO  volume create: ISO: success: please start the volume to access data[root@ovirthost14.skyovirt.com ~]# gluster volume .........【阅读全文】

阅读(4173) | 评论(0) | 转发(0)

发布时间:2016-03-14 15:16:39

迁移到hosted-engine后出现添加主机ovirthost16.skyovirt.com 到集群中会报Host ovirthost16.skyovirt.com cannot access the Storage Domain(s) hosted_storage attached to the Data Center Default. Setting Host state to Non-Operational.Failed to connect Host ovirthost16.skyovirt.com to Storage Pool Def.........【阅读全文】

阅读(3086) | 评论(0) | 转发(0)

发布时间:2016-03-14 15:02:41

ovirthost17.skyovirt.comovirthost18.skyovirt.com上面安装了ovirt hosted-engine 管理服务.ovirthost18.skyovirt.com服务器重启后使用hosted-engine --vm-status无法查看服务器状态[root@ovirthost18 ~]# hosted-engine --vm-statusUnable to read vm.conf, please check ovirt-ha-agent logs查看ovirthost17.skyovi.........【阅读全文】

阅读(2692) | 评论(0) | 转发(0)

发布时间:2016-03-13 23:05:25

Ceph clients use the following steps to compute PG IDs.The client inputs the pool ID and the object ID. (e.g., pool = "liverpool" and object-id = "john")CRUSH takes the object ID and hashes it.CRUSH calculates the hash modulo of the number of PGs. (e.g., 58) to .........【阅读全文】

阅读(1824) | 评论(0) | 转发(0)

发布时间:2016-03-13 13:56:00

支持selinux在这个ceph版本中,添加了SELinux 策略. 但ceph的SELinux支持默认并没有使用,要使用selinux,安装ceph-selinux包.注意:安装ceph-selinux会造成节点的ceph进程down,所以要注意升级方式.支持缓存服务添加了ceph osd crush tree这条新命令支持修改TCMalloc thread缓存Red Hat Satellite 5与Ceph整合.........【阅读全文】

阅读(1035) | 评论(0) | 转发(0)

发布时间:2016-03-12 18:32:49

[root@ovirthost18 ~]# dmesg | grep "Performance Events"[    0.162391] Performance Events: PEBS fmt1+, 16-deep LBR, Nehalem events, Intel PMU driver.......【阅读全文】

阅读(3920) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册