05 2020 档案

legacy/uefi 双启动
摘要:分区要求: 1 biosboot 2 EFi 分区 3 根分区 分区顺序 根分区要求必须是最后一个,不然根分区没法扩展 大致步骤 1 安装vm 从uefi 启动。 2 安装bios 的grub、 grub2-install grub2-mkconfig sed linuxefi/linux grub 阅读全文

posted @ 2020-05-30 12:18 思此狂 阅读(1193) 评论(0) 推荐(0) 编辑

python 队列Queue
摘要:from Queue import Queue qlist=Queue(maxsize=300) import threading for i in range(20): qlist.put("hello num%d" %(i)) def process_work(qlist): while Tru 阅读全文

posted @ 2020-05-27 23:45 思此狂 阅读(191) 评论(0) 推荐(0) 编辑

python 抛出捕获异常
摘要:res_json={ "id": 123456, "ip": "1.2.3.4" } res_str="vpc out limited" def return_val(): return res_str def create_vm(): try: response = return_val() re 阅读全文

posted @ 2020-05-27 22:20 思此狂 阅读(474) 评论(0) 推荐(0) 编辑

python 装饰器
摘要:#函数返回值+1 def make(func): def wrapper(*args,**kwds): return func(*args,**kwds) + 1 return wrapper @make def add(): return 4 print add() #输出5 #函数返回值+N d 阅读全文

posted @ 2020-05-22 20:47 思此狂 阅读(149) 评论(0) 推荐(0) 编辑

glance
摘要:1 调用API 前应先source rc 文件,加载用户名密码等环境变量 rc 文件可以在控制面板下载。 查询镜像列表glance image-listopenstack image list glance image-delete IDglance image-show ID 创建镜像openst 阅读全文

posted @ 2020-05-16 23:33 思此狂 阅读(404) 评论(0) 推荐(0) 编辑

openstack 部署安装
摘要:手头只有一台物理机环境 部署allinone 环境 安装前的准备工作1 stop network networkmananger 服务2 selinux 关掉3 配置好repo源,以centos 7为例 BASE.repo epel.repo 等 部署过程 参考这篇博客,https://www.cn 阅读全文

posted @ 2020-05-16 23:31 思此狂 阅读(698) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示