自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

原创 redis创建cluster

在一些文档中,创建redis cluster需要采用redis-trib.rb脚本实现 但是,在redis5中,已经修改为采用redis-cli实现了,语法如下: redis-cli --cluster help Cluster Manager Commands:   create         host1:port1 ... hostN:portN                  --c...

2018-12-19 13:24:20 312

原创 sed 使用说明

1,打印第几行 sed -n '2p' input.lp >output.lp sed -n '2,10p' input.lp >output.lp 2,匹配数据,打印 sed -n '/patern/p' input.lp >output.lp 3,匹配数据,打印行号 sed -n '/patern/=' input.lp >output.lp 4,读取指定...

2018-12-18 16:34:44 597

原创 redis-py对sentinel的支持

redis-py同样支持Redis Sentinel,方法如下: from redis.sentinel import Sentinel sentinel = Sentinel([('localhost', 26379)], socket_timeout=0.1) print 'master:',sentinel.discover_master('mymaster') print 'slave...

2018-12-18 10:55:25 546

空空如也

空空如也

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

TA关注的人

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