上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页

2020年6月4日

python bs4

摘要: # -*- coding: UTF-8 -*- #爬虫 import urllib2 #import bs4 import re import sys from bs4 import BeautifulSoup # import time reload(sys) sys.setdefaultenco 阅读全文

posted @ 2020-06-04 00:12 思此狂 阅读(138) 评论(0) 推荐(0)

2020年5月30日

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 思此狂 阅读(1272) 评论(0) 推荐(0)

2020年5月27日

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 思此狂 阅读(196) 评论(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 思此狂 阅读(480) 评论(0) 推荐(0)

2020年5月22日

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 思此狂 阅读(155) 评论(0) 推荐(0)

2020年5月16日

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 思此狂 阅读(407) 评论(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 思此狂 阅读(735) 评论(0) 推荐(0)

2020年4月3日

gshell

摘要: https://publib.boulder.ibm.com/wasce/V2.1/zh_CN/gshell.html https://geronimo.apache.org/GMOxDOC22/gshell.html 阅读全文

posted @ 2020-04-03 17:01 思此狂 阅读(311) 评论(0) 推荐(0)

2020年2月29日

Dockerfile

摘要: 创建文件名为 Dockerfile FROM nginx:latestRUN echo 'this is from dockerfile' > /usr/share/nginx/html/index.html RUN ["/bin/echo","helloworld",">","/usr/share 阅读全文

posted @ 2020-02-29 15:53 思此狂 阅读(193) 评论(0) 推荐(0)

2020年2月20日

tmplinks

摘要: https://johnlewis.ie/booting-linux-under-uefi-and-legacy-bios/ https://www.mankier.com/8/grub2-switch-to-blscfg#--config-file https://aws.amazon.com/c 阅读全文

posted @ 2020-02-20 22:54 思此狂 阅读(219) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页

导航