会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奔跑de孩子
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
下一页
2018年8月18日
kubernetes高可用设计-CA,etcd
摘要: 环境准备: master01:192.168.150.128 master02:192.168.150.130 master03:192.168.150.131 node01:192.168.150.132 lb01:192.168.150.133 lb02:192.168.150.134 集群环境
阅读全文
posted @ 2018-08-18 18:00 嚒~☆大白
阅读(619)
评论(0)
推荐(0)
2018年7月30日
docker实现跨主机连接
摘要: 实验环境: centos7系统 host1:192.168.42.128 host2:192.168.42.129 dokcer容器跨主机连接 1.使用网桥实现跨主机容器连接 2.使用Open vSwitch实现跨主机容器连接 3.使用weave实现跨主机连接 open vSwitch 1.建立ov
阅读全文
posted @ 2018-07-30 17:28 嚒~☆大白
阅读(628)
评论(0)
推荐(0)
2018年7月9日
Python-RabbitMQ(持久化)
摘要: 生产者: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import pika connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = conn
阅读全文
posted @ 2018-07-09 09:09 嚒~☆大白
阅读(270)
评论(0)
推荐(0)
Python-RabbitMQ(简单发送模型)
摘要: RabbitMQ需要 erlang 和pika 1.RabbitMQ和erlang版本必须匹配,否则就报没有进程错误 2.RabbitMQ的erlang.cookie和windows下的erlang.cookie必须一致 在windows安装RabbitMQ需要配置环境变量,一个是erlang环境变
阅读全文
posted @ 2018-07-09 09:08 嚒~☆大白
阅读(162)
评论(0)
推荐(0)
python-gevent模块实现socket大并发
摘要: 服务器端:gevent_server.py 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 import sys import socket impo
阅读全文
posted @ 2018-07-09 09:06 嚒~☆大白
阅读(1086)
评论(0)
推荐(0)
python-gevent模块(自动切换io的协程)
摘要: ThreadAndProcess
阅读全文
posted @ 2018-07-09 09:05 嚒~☆大白
阅读(140)
评论(0)
推荐(0)
python-greenlet模块(协程)
摘要: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 from greenlet import greenlet def test1(): print(12) gr2.switch() print(34) gr2.switch() def test2(): print(56)
阅读全文
posted @ 2018-07-09 09:04 嚒~☆大白
阅读(396)
评论(1)
推荐(0)
python-redis集合模式
摘要: 无序集合SADD set集合是直接去重的,只会输出 xiao hehe sadd names3 xiao xiao hehe hehe 获取集合 names3的所有值,集合不能用切片形式获取值,因为是无序的 SMEMBERS names3 获取names3对应的集合中元素个数 SCARD names
阅读全文
posted @ 2018-07-09 09:00 嚒~☆大白
阅读(224)
评论(0)
推荐(0)
python-redis列表模式
摘要: 往列表里存放数据先进后出(左进) lpush names A B C D E 往列表里存放数据后进先出(右进) rpush names G P H K 查看列表里面的数据: lrange names 0(从0开始) -1 切片: lrange names start end(start end 代表
阅读全文
posted @ 2018-07-09 08:59 嚒~☆大白
阅读(383)
评论(0)
推荐(0)
python-redis哈希模式
摘要: 命令: hset info namehgetall infohkeys infohvlls info m系列批量处理: hmset info2 k1 v1 k2 v2 hmget info2 k1 k2 hlen获取有几个key hlen info2 hexists判断是否存在: hexists i
阅读全文
posted @ 2018-07-09 08:58 嚒~☆大白
阅读(192)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告