自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(19)
  • 收藏
  • 关注

转载 subprocess.check_output

#拼接需要执行的shell指令支持管道cmd="virsh list --all | awk '{print $2}' | sed '1d' | sed '/^$/d'"try: result = subprocess.check_output(cmd, shell=True)e...

2017-10-10 16:17:00 1577

转载 gpg/gnupg

http://www.ruanyifeng.com/blog/2013/07/gpg.html 转载于:https://my.oschina.net/u/2328235/blog/154...

2017-09-26 13:29:00 114

转载 xrdp 安装

centos7.3 1611:yum install -y epel-releaseyum install -y xrdp tigervnc tigervnc-serversystemctl start xrdpsystemctl enable xrdpfirewall-cmd --...

2017-09-03 17:04:00 304

转载 buildbot 安装及使用

安装:centos7.3 1611:install masteryum install -y gcc python-devel python-pippip install --upgrade pippip install twisted==14.0.1pip install bui...

2017-09-03 16:29:00 408

转载 mdadm 实现linux软raid

http://www.cnblogs.com/mchina/p/linux-centos-disk-array-software_raid.htmlhttp://blog.csdn.net/igorzhang/article/details/20695093http://www.linux...

2017-09-02 16:24:00 78

转载 iptables 规则编写

iptables -I INPUT -s 10.240.217.181 -j DROPiptables -I INPUT -m mac --mac-source 52:54:00:e4:61:d3 -j DROPiptables -I INPUT -p tcp --dport 8388...

2017-08-28 15:03:00 226

转载 diff 输出的解读

larAdd the lines in range r of the second file after line l of the first file. For example, `8a12,15' means append lines 12--15 of file 2 after l...

2017-08-24 15:42:00 163

转载 mongo shell 脚本执行方式

shell 脚本执行方式echo "show collections;" | mongo -u admin -p passw0rd table_name --shell 转载于:ht...

2017-08-14 13:33:00 541

转载 Juju-maas 环境搭建

可以查看此处代替本blog:(此处描述比较详细,但为全英文描述)http://github.com/lenovo/workload-solution/wiki/Build-Juju-&-MAAS-on-KVM以下操作均为root用户install jujuref:https:...

2017-07-27 16:08:00 803

转载 ceph 操作指令

ceph osd dumpceph osd treeceph auth del osd.0ceph osd rm 0rados mkpool poolnameceph osd pool create poolname 128 //128 PGrados lspoolscep...

2017-07-21 09:53:00 67

转载 iscsi 配置

存储服务端yum install scsi-target-utils此种方式安装的tgtd服务不支持rbd。若要直接使用rbd需要下载scsi-target-utils的源码包编译,以打开rbd模块支持vim /etc/tgt/conf.d/ceph.conf<target i...

2017-07-21 09:49:00 87

转载 KVM配置

安装KVMyum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewerVM管理virsh list --allvirsh start ...

2017-07-17 01:00:00 75

转载 python Tkinter组件

本文OS环境:centos 7.3 1611 workstation其他OS环境未曾测试事前安装包:yum -y install tkinterpip install pillow由于thinter仅支持少量格式图片其他格式图片须按照如下处理(待验证):from PIL imp...

2017-07-04 10:34:00 79

转载 CentOS bridge network

cat ifcfg-br0 TYPE="Bridge" BOOTPROTO="static" #DEFROUTE="yes" #IPV4_FAILURE_FATAL="no" #IPV6INIT="yes" #IPV6_AUTOCONF="yes" #IPV6_DEFROUTE="yes"...

2017-06-30 10:21:00 95

转载 shell中关于数字变量比较报错的问题

shell 中使用ssh -t hostIP cat filename | grep keywork | awk '{print $2}'方式获取远程文件中配置的值,并拿来进行大小比较或数学运算时,会出现错误。 报错详情: 通过 test/[] 判断两个数字变量的大小: ...

2017-06-30 09:57:00 1032

转载 suse 配置

系统安装: 安装阶段,遇到网卡选项,需设置所有网卡为dhcp或static,否则,系统安装完毕后,ifconfig会看不到网卡 网络: 重启:rcnetwork restart 设置DNS: /etc/sysconfig/network/c...

2017-06-30 09:52:00 98

转载 KVM冷迁移

LinuxKVM 冷迁移: ----step1: 查看当前要迁移的虚拟机Name virsh list --all Eg: [root@localhost]#virsh list --all IdNameState...

2017-06-30 09:50:00 181

转载 ntp 配置

安装软件: CentOS: yum install ntp SUSE: zypper in ntpd vim /etc/ntp.conf #从互联网同步,此为互联网ntp server servercn.pool.ntp.orgi...

2017-06-30 09:49:00 79

转载 Canonical Juju 使用笔记

ubuntu 版本代号: lucid(10.04) Natty(11.04) Oneiric(11.10) Precise(12.04) Quantal(12.10) Trusty(14.04) Utopic(14.10) V...

2017-06-30 09:45:00 171

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除