- 博客(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
1652
转载 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
149
转载 xrdp 安装
centos7.3 1611: yum install -y epel-release yum install -y xrdp tigervnc tigervnc-server systemctl start xrdp systemctl enable xrdp firewall-cmd --...
2017-09-03 17:04:00
366
转载 buildbot 安装及使用
安装: centos7.3 1611: install master yum install -y gcc python-devel python-pip pip install --upgrade pip pip install twisted==14.0.1 pip install bui...
2017-09-03 16:29:00
487
转载 mdadm 实现linux软raid
http://www.cnblogs.com/mchina/p/linux-centos-disk-array-software_raid.html http://blog.csdn.net/igorzhang/article/details/20695093 http://www.linux...
2017-09-02 16:24:00
107
转载 iptables 规则编写
iptables -I INPUT -s 10.240.217.181 -j DROP iptables -I INPUT -m mac --mac-source 52:54:00:e4:61:d3 -j DROP iptables -I INPUT -p tcp --dport 8388...
2017-08-28 15:03:00
283
转载 diff 输出的解读
lar Add 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
210
转载 mongo shell 脚本执行方式
shell 脚本执行方式 echo "show collections;" | mongo -u admin -p passw0rd table_name --shell 转载于:ht...
2017-08-14 13:33:00
578
转载 Juju-maas 环境搭建
可以查看此处代替本blog:(此处描述比较详细,但为全英文描述) http://github.com/lenovo/workload-solution/wiki/Build-Juju-&-MAAS-on-KVM 以下操作均为root用户 install juju ref:https:...
2017-07-27 16:08:00
922
转载 ceph 操作指令
ceph osd dump ceph osd tree ceph auth del osd.0 ceph osd rm 0 rados mkpool poolname ceph osd pool create poolname 128 //128 PG rados lspools cep...
2017-07-21 09:53:00
101
转载 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
126
转载 KVM配置
安装KVM yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer VM管理 virsh list --all virsh start ...
2017-07-17 01:00:00
104
转载 python Tkinter组件
本文OS环境:centos 7.3 1611 workstation 其他OS环境未曾测试 事前安装包: yum -y install tkinter pip install pillow 由于thinter仅支持少量格式图片 其他格式图片须按照如下处理(待验证): from PIL imp...
2017-07-04 10:34:00
112
转载 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
129
转载 shell中关于数字变量比较报错的问题
shell 中使用ssh -t hostIP cat filename | grep keywork | awk '{print $2}'方式获取远程文件中配置的值,并拿来进行大小比较或数学运算时,会出现错误。 报错详情: 通过 test/[] 判断两个数字变量的大小: ...
2017-06-30 09:57:00
1114
转载 suse 配置
系统安装: 安装阶段,遇到网卡选项,需设置所有网卡为dhcp或static,否则,系统安装完毕后,ifconfig会看不到网卡 网络: 重启:rcnetwork restart 设置DNS: /etc/sysconfig/network/c...
2017-06-30 09:52:00
127
转载 KVM冷迁移
LinuxKVM 冷迁移: ----step1: 查看当前要迁移的虚拟机Name virsh list --all Eg: [root@localhost]#virsh list --all IdNameState...
2017-06-30 09:50:00
214
转载 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
110
转载 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
218
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人