摘要: http://redis.cn/commands.html cluster saveconfig: 存储node-config信息 config rewrite: 存储配置文件信息 config get: config set: 实例关闭命令 1 2 redid-cli shutdown 说明:关闭 阅读全文
posted @ 2018-06-19 15:47 安慧桥没有你 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 消费者 direct: 生产者: 消费者: topic 生产者 消费者 RPC producer: consumer: 阅读全文
posted @ 2018-06-13 19:52 安慧桥没有你 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 同步IO和异步IO,阻塞IO和非阻塞IO分别是什么,到底有什么区别?不同的人在不同的上下文下给出的答案是不同的。所以先限定一下本文的上下文。 一 概念说明 在进行解释之前,首先要说明几个概念:- 用户空间和内核空间- 进程切换- 进程的阻塞- 文件描述符- 缓存 I/O 用户空间与内核空间 现在操作 阅读全文
posted @ 2018-06-13 16:09 安慧桥没有你 阅读(409) 评论(0) 推荐(0) 编辑
摘要: greenlet 协程 gevent gevent并行和串行对比 并行: 串行: 阅读全文
posted @ 2018-06-12 14:04 安慧桥没有你 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 进程Queue 进程Pipe 进程Manager 进程锁 进程池 阅读全文
posted @ 2018-06-11 16:02 安慧桥没有你 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 有优先级的队列 阅读全文
posted @ 2018-06-04 17:03 安慧桥没有你 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ssh访问 sftp访问 阅读全文
posted @ 2018-06-01 15:20 安慧桥没有你 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 异常处理: d = {'a': 2} try: d['c'] except (KeyError, IndexError) as e: print("not good key %s " % e) except IndexError as e: print("not good key %s " % e) 阅读全文
posted @ 2018-05-23 14:57 安慧桥没有你 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 服务器端 客户端 阅读全文
posted @ 2018-05-18 16:55 安慧桥没有你 阅读(143) 评论(0) 推荐(0) 编辑
摘要: # 反射class Dog(object): def __init__(self, name): self.name = name def eat(self): print("Dog name is %s" % self.name)d1 = Dog("andy")# getattr(obj, str 阅读全文
posted @ 2018-05-14 21:35 安慧桥没有你 阅读(90) 评论(0) 推荐(0) 编辑