摘要: snapshots_service.add( types.Snapshot( description='My3 snapshot', persist_memorystate=False, disk_attachments = [ types.DiskAttachment( disk=types.Di 阅读全文
posted @ 2020-12-15 10:15 没有尾巴的狗 阅读(206) 评论(0) 推荐(0)
摘要: 要确保qemu-agent 安装成功才可以通讯 virsh qemu-agent-command centos --cmd '{"execute":"guest-exec","arguments":{"path":"hostnamectl", "arg":["set-hostname","lgj"] 阅读全文
posted @ 2020-12-12 15:16 没有尾巴的狗 阅读(3298) 评论(0) 推荐(0)
摘要: 参数介绍:1 group参数未使用,值始终为None2 target表示调用对象,即子进程要执行的任务3 args表示调用对象的位置参数元组,args=(1,2,'egon',)4 kwargs表示调用对象的字典,kwargs={'name':'egon','age':18}5 name为子进程的名 阅读全文
posted @ 2020-12-03 11:13 没有尾巴的狗 阅读(620) 评论(0) 推荐(0)
摘要: 一、去除空格 strip() 1 2 3 4 " xyz ".strip() # returns "xyz" " xyz ".lstrip() # returns "xyz " " xyz ".rstrip() # returns " xyz" " x y z ".replace(' ', '') 阅读全文
posted @ 2020-12-02 15:10 没有尾巴的狗 阅读(104) 评论(0) 推荐(0)
摘要: 两个都可以执行系统命令,但是如果想要获取到命令的输出内容就要用到os.popen com=os.popen('ls') print(com.readlines()) 阅读全文
posted @ 2020-12-02 15:08 没有尾巴的狗 阅读(132) 评论(0) 推荐(0)
摘要: 模态框获得参数,传递给flask后台 (解决我的问题,就是可以把表格上的参数,传递到模态框上面去。用于记录学习) 流程 把user1 传到模态框上,然后静态框提交到后台 前端html <td style="font-size: 16px;"><button type="button" class=" 阅读全文
posted @ 2020-12-02 10:22 没有尾巴的狗 阅读(810) 评论(0) 推荐(0)
摘要: #su - postgres -c "psql"psql: error while loading shared libraries: libpq.so.rh-postgresql10-5: cannot open shared object file: No such file or direct 阅读全文
posted @ 2020-09-27 09:17 没有尾巴的狗 阅读(531) 评论(0) 推荐(0)
摘要: 前提条件ovirt引擎装好了,下面的环境vdsm和engine是装在同一台服务器上 1.创建NAT网络配置文件/etc/libvirt/qemu/networks/nat.xml,内容如下 cd /etc/libvirt/qemu/networks cp default.xml nat.xml vi 阅读全文
posted @ 2020-09-02 12:03 没有尾巴的狗 阅读(820) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-01 09:44 没有尾巴的狗 阅读(134) 评论(0) 推荐(0)
摘要: 需求我自己写了一个python后台,添加上了ovirt 引擎web上,如图 但第一次访问时需要,需要接受两次不安全连接,ovirt web使用https,我往里面加http,加不进去。 只能同样使用https。我想使用ip地址访问然后只接受一次不安全连接。(程序使用跟ovirt同样的证书)客户使用起 阅读全文
posted @ 2020-04-07 18:25 没有尾巴的狗 阅读(1372) 评论(0) 推荐(0)