05 2016 档案
摘要:保证模板的正常执行 使用||true $ consul template template "in.ctmpl:out.file:service nginx restart || true" 当nginx不返回0的时候,仍然返回OK exit code, consul模板仍然作为服务继续执行。 建议
阅读全文
摘要:datacenters {{datacenters}} 数据中心 file {{file "/path/to/local/file"}} 读取本地文件的内容。如果不可读的话,会报错 key {{key "service/redis/maxconns@east aws"}} 读取consul的键的值。
阅读全文
摘要:参看https://github.com/hashicorp/consul template examples // This is the address of the Consul agent. By default, this is 127.0.0.1:8500, // which is th
阅读全文
摘要:Consul Template的使用 1安装 地址 https://github.com/hashicorp/consul template/releases wget https://releases.hashicorp.com/consul template/0.14.0/consul temp
阅读全文
摘要:加入集群的问题 1 只有2个server的时候,一个挂掉,不会选举出新的leader。 2 使用 bootstrap 可以直接启动为leader,这和 bootstrap expect 是有区别的 3第一次加入集群使用consul join ip地址 4 挂掉后重启 要使用consul ......
阅读全文
摘要:1 webui 默认最新的webui只支持127.0.0.1这种的本机网站的 不支持192.168.1.2 启用192.168.1.2的支持 命令加 client 192.168.2.156 感谢赵记刚 http://www.cnblogs.com/java zhao/p/5381892.html
阅读全文
摘要:yum y install libtool git clone git://github.com/mono/libgdiplus.git cd libgdiplus ./autogen.sh prefix=/usr //上一步如果有问题 出现No package 'glib 2.0' found的解
阅读全文
摘要:centos7上consul的安装 一 下载 下载文件 wget https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip unzip consul_0.6.4_linux_amd64.zip 拷贝到适当的位置
阅读全文
摘要:centos7上consul的安装 新手笔记 环境 我用的是centos7, 用的是vmware 一 安装系统后首先要设置ip ifconfig eth0 →查看IP 不过输出的信息多一些 ifconfig|grep 'Bcast' → 这个输出的信息要清晰多了 修改IP并生效 编辑/etc/sys
阅读全文
摘要:一 下载webmin软件包 wget http://prdownloads.sourceforge.net/webadmin/webmin 1.791 1.noarch.rpm 二 安装perl环境 yum y install perl perl Net SSLeay openssl perl IO
阅读全文