摘要: 转发:http://quenywell.com/install-glusterfs-on-centos-6-x/ 本文主要介绍如何在CentOS 6.x上快速安装GlusterFS。GlusterFS是一个开源的分布式文件系统,它可以将分散的存储空间聚合在一起,形成一个虚拟的存储池。它支持横向扩展( 阅读全文
posted @ 2017-07-18 16:51 有肉的三明治 阅读(799) 评论(0) 推荐(0) 编辑
摘要: [root@localhost yum.repos.d]# wget http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo--2017-07-18 15:46:43-- http 阅读全文
posted @ 2017-07-18 15:26 有肉的三明治 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 法1: list =list(string.lowercase + string.uppercase) + [str(i) for i in range(10)]FH=('!','@','#','$','%','&','_')for f in FH: list.append(f)num = rand 阅读全文
posted @ 2017-07-18 10:46 有肉的三明治 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 实现了python与python程序之间内存的交互 常用场景: 1 把内存的数据写到磁盘 2 socket只能传字符串,二进制,通过序列化 import pickle li = ['alex',11,22,'ok','sb']dumpsed = pickle.dumps(li)print dumps 阅读全文
posted @ 2017-07-18 00:35 有肉的三明治 阅读(184) 评论(0) 推荐(0) 编辑
摘要: import hashlib hash= hashlib.md5()hash.update('admin')print hash.hexdigest() 阅读全文
posted @ 2017-07-18 00:16 有肉的三明治 阅读(100) 评论(0) 推荐(0) 编辑