05 2019 档案
摘要:cp etc/{tempest.conf.sample,tempest.conf}
阅读全文
摘要:1. python3中取消了Long类型 2. reload函数在python2中是内置函数,在python3中需要导入:from imp import reload 3. python3中没有unicode函数了。
阅读全文
摘要:下载 https://github.com/gearman/gearmand/releases 解压,进入目录 sudo ./configure make sudo make install 问题1: configure: error: could not find gperf solution:
阅读全文
摘要:iscsi configuration unable to save python error “ValueError: 'Implict and Explict' is not in list” The issue is caused by the fact that these paramete
阅读全文
摘要:apt-get install python3-pip # Python3 ➜ ~ pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) pip3 install flake8 执行目录的flake检测 python2.
阅读全文
摘要:一、Dictionary 转为JSON将dict转为JSON,这里利用包jsonimport jsonaItem = {}aItem["id"] = "2203"aItem["title"] = "title"aItem["subTitle"] = "sub title"bItem = {}bIte
阅读全文
摘要:#!/usr/bin/env python# -*- coding: utf-8 -*-if __name__ == '__main__': list = ['html', 'js', 'css', 'python'] # 方法1 print '遍历列表方法1:' for i in list: pr
阅读全文
摘要:问题 1 2019/05/20 15:27:14.574363 ctdb-eventd[26329]: 60.nfs: /etc/ctdb/nfs-linux-kernel-callout: line 143: /proc/sys/net/ipv4/tcp_tw_recycle: No such f
阅读全文
摘要:+ + + | Python | JSON | + + + | dict | object | + + + | list, tuple | array | + + + | str | string | + + + | int, float | number | + + + | True | true
阅读全文
摘要:就作用域而言,Python与C有着很大的区别,在Python中并不是所有的语句块中都会产生作用域。只有当变量在Module(模块)、Class(类)、def(函数)中定义的时候,才会有作用域的概念。 在作用域中定义的变量,一般只在作用域中有效。 需要注意的是:在if-elif-else、for-el
阅读全文
摘要:2019-05-13 14:43:27.017 47547 ERROR nova.compute.manager [req-3f1af0ed-c342-4cf3-8e76-6963053a5227 8b1ee1cd28ff40ef9bc830e71edced61 74288c12eb5f47aeab
阅读全文
摘要:命令行修改密码:token在/etc/keystone/keystone.conf中的一个admin_tokenexport OS_SERVICE_TOKEN=165a1766c12a497b8fbb18867c212aaaexport OS_SERVICE_ENDPOINT=http://loca
阅读全文
摘要:配置源仓库 zypper通过软件源进行软件包的搜索,如果安装系统时使用CDROM进行操作,那么软件源会指向一个"cd://"的地址。 这样便无法从网上下载软件。 通过zypper repos --details查看源配置: 下一步是找到可用的源,需要与版本相近,因此先确定opensuse的版本,如当
阅读全文
摘要:https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html
阅读全文