• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

10 2017 档案

 
go grpc
摘要:https://godoc.org/google.golang.org/grpc go get google.golang.org/grpc go get -a github.com/golang/protobuf/protoc-gen-goprotoc --go_out=plugins=grpc: 阅读全文
posted @ 2017-10-31 23:11 会飞の鱼 阅读(219) 评论(0) 推荐(0)
python gun readline
摘要:https://github.com/ludwigschwardt/python-gnureadline 阅读全文
posted @ 2017-10-28 14:12 会飞の鱼 阅读(315) 评论(0) 推荐(0)
pyinstaller 打包
摘要:[root@mhc nsf]# pip install pyinstallerCollecting pyinstaller Downloading PyInstaller-3.3.tar.gz (3.5MB) 100% |████████████████████████████████| 3.5MB 阅读全文
posted @ 2017-10-28 13:55 会飞の鱼 阅读(1250) 评论(0) 推荐(0)
zfs mount
摘要:root@47abd5c91421:/# ls /native/sbin autopush cryptoadm dhcpinfo dlstat flowadm ibd_delete_link ifparse installgrub jsh netstrategy rc1 rc5 route soco 阅读全文
posted @ 2017-10-27 15:28 会飞の鱼 阅读(357) 评论(0) 推荐(0)
redis cluster test
摘要:cp /test/tests/redis.conf /etc redis-server /etc/redis.conf redis-trib.rb create --replicas 1 172.17.0.6:6379 172.17.0.7:6379 172.17.0.8:6379 172.17.0 阅读全文
posted @ 2017-10-25 21:41 会飞の鱼 阅读(367) 评论(0) 推荐(0)
percona xtradb cluster test
摘要:docker run --rm -ti -e CLUSTER_NAME=test -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --entrypoint="bash" -v `pwd`:/test percona/percona-xtradb-cluster:5.6.36 sets 阅读全文
posted @ 2017-10-24 14:18 会飞の鱼 阅读(200) 评论(0) 推荐(0)
swarmkit test
摘要:swarmd -d /tmp/node-1 --listen-control-api /tmp/node-1/swarm.sock --hostname mhc --engine-addr=tcp://109.105.4.65:2375 --tls --tlscert=/etc/docker/cer 阅读全文
posted @ 2017-10-23 17:03 会飞の鱼 阅读(197) 评论(0) 推荐(0)
在 Golang 中使用 Protobuf
摘要:使用 goprotobuf这里通过一个例子来说明用法。先创建一个 .proto 文件 test.proto: 编译此 .proto 文件: 这里通过 –go_out 来使用 goprotobuf 提供的 Protobuf 编译器插件 protoc-gen-go。这时候我们会生成一个名为 test.p 阅读全文
posted @ 2017-10-23 09:41 会飞の鱼 阅读(2467) 评论(0) 推荐(0)
swarmkit
摘要:SwarmKit是用于在任何规模上编排分布式系统的工具包。 它包括节点发现的原语,基于raft的共识,任务调度等。 其主要优点是: 分布式:SwarmKit使用raft共识算法来协调,不依赖单一故障点执行决策。 安全:群集中的节点通信和成员资格是开箱即用的。 SwarmKit使用相互TLS进行节点认 阅读全文
posted @ 2017-10-19 13:40 会飞の鱼 阅读(620) 评论(0) 推荐(0)
linux 重定向
摘要:>/dev/null 2>&1 标准输出和标准错误都重定向到了/dev/null 2>&1 >/dev/null 标准错误打印到屏幕,而标准输出不打印到屏幕。 &>/dev/null // 这个就是,不管你是啥玩意儿文件描述符,通通重定向到/dev/null 阅读全文
posted @ 2017-10-18 13:31 会飞の鱼 阅读(186) 评论(0) 推荐(0)
swarm调度
摘要:Swarm filters Configure the available filters 过滤器分为两类,即节点过滤器和容器配置过滤器。 节点过滤器对Docker主机的特性或Docker守护程序的配置进行操作。 容器配置过滤器根据容器的特性或主机上image的可用性进行操作。每个过滤器都有一个标识 阅读全文
posted @ 2017-10-18 11:49 会飞の鱼 阅读(1225) 评论(0) 推荐(0)
docker swarm test
摘要:consul: 192.168.111.111: docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap docker run -d -p 4000:4000 swarm manage -H :4000 阅读全文
posted @ 2017-10-16 22:41 会飞の鱼 阅读(287) 评论(0) 推荐(0)
flask test
摘要:DATABASE_URI = 'mysql://root:mhc.123@127.0.0.1/test1' 阅读全文
posted @ 2017-10-12 21:01 会飞の鱼 阅读(141) 评论(0) 推荐(0)
confd test
摘要:vi /etc/confd/confd.toml backend = "consul"confdir = "/etc/confd"log-level = "debug"interval = 600nodes = [ "127.0.0.1:8500",]noop = false ./confd -on 阅读全文
posted @ 2017-10-11 11:40 会飞の鱼 阅读(169) 评论(0) 推荐(0)
shell中的${},##和%%的使用
摘要:假设我们定义了一个变量为: file=/dir1/dir2/dir3/my.file.txt 可以用${ }分别替换得到不同的值: ${file#*/}:删掉第一个/ 及其左边的字符串:dir1/dir2/dir3/my.file.txt ${file##*/}:删掉最后一个/ 及其左边的字符串:m 阅读全文
posted @ 2017-10-11 10:48 会飞の鱼 阅读(6310) 评论(0) 推荐(1)
cluster DNS
摘要:[root@mhc1 dns]# pwd/root/test/k8s/kubernetes/cluster/addons/dns [root@mhc1 dns]# export DNS_SERVER_IP="10.254.10.2"[root@mhc1 dns]# export DNS_DOMAIN 阅读全文
posted @ 2017-10-07 09:39 会飞の鱼 阅读(243) 评论(0) 推荐(0)
k8s实战
摘要:wget https://github.com/coreos/etcd/releases/download/v2.2.0/etcd-v2.2.0-linux-amd64.tar.gz etcd -name etcd -data-dir /var/lib/etcd -listen-client-url 阅读全文
posted @ 2017-10-06 16:13 会飞の鱼 阅读(597) 评论(0) 推荐(0)
k8s问题记录
摘要:1. kubectl run 起来的pod 用 kubectl delete po删不掉 kubectl delete deployment my-nginx kubelet# 看到最后一行:error: failed to run Kubelet: failed to create kubelet 阅读全文
posted @ 2017-10-01 10:22 会飞の鱼 阅读(176) 评论(0) 推荐(0)