博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Consul入门01 - 安装Consul
阅读量:7125 次
发布时间:2019-06-28

本文共 1412 字,大约阅读时间需要 4 分钟。

Consul必须首先安装在每个节点上当该节点需要称为Consul集群中的成员。为了使得安装更容易,Consul为所有支持的平台提供了二进制安装包。本页面不描述如何从源码来编译Consul。

安装Consul

为了安装Consul,需要在中找到和你系统匹配的包。Consul被打包成zip格式的压缩包。

解压Consul zip包,复制consul二进制文件到系统PATH中包含的路径下,以确保它可以被执行。在Unix系统中,~/bin/usr/local/bin是通常的安装路径,选择哪个依赖于你安装Consul给单个用户使用还是所有用户都可以使用。对于Windows系统,你可以安装到任意目录,不过不要忘记将安装目录加入到%PATH%中去。

OS X

如果你使用作为你的包管理器,你可以通过它来安装Consul:

$ brew cask install consul

如果没有,那你可以通过下面命令安装:

$ brew install caskroom/cask/brew-cask

验证安装

安装Consul后,通过打开新的终端回话并且输入consul是否可用来验证安装是否工作。通过执行consul你应该可以看到下面类似的输出:

$ consulusage: consul [--version] [--help]  [
]Available commands are: agent Runs a Consul agent event Fire a new event exec Executes a command on Consul nodes force-leave Forces a member of the cluster to enter the "left" state info Provides debugging information for operators join Tell Consul agent to join cluster keygen Generates a new encryption key leave Gracefully leaves the Consul cluster and shuts down members Lists the members of a Consul cluster monitor Stream logs from a Consul agent reload Triggers the agent to reload configuration files version Prints the Consul version watch Watch for changes in Consul

如果终端报告consul没有被找到的错误,那可能是你的PATH没有被正确的设置导致的。请会到前面的步骤去检查你的PATH环境变量是否包含了安装Consul目录。

下一步

Consul已经安装完成,让我们来启动代理!

翻译自

转载地址:http://oaeel.baihongyu.com/

你可能感兴趣的文章
python logging 模块在windows报错ConfigParser.NoSectionError: No section
查看>>
windows下python3虚拟环境搭建
查看>>
error at ::0 formal unbound in pointcut
查看>>
关于linux下Squid透明代理的试验
查看>>
马哥2016全新Linux+Python高端运维班第四期-第三次作业
查看>>
AngularJS基础语法
查看>>
程序编译过程
查看>>
《Linux学习并不难》归档和压缩(2):tar包的使用和管理
查看>>
cookie与session详解
查看>>
自定义destoon6.0的地址生成规则
查看>>
ELK之搜索引擎介绍(一)
查看>>
一键 安装lamp+lnmp+ftp+Tomcat任意选择5分钟起飞
查看>>
DNS服务器原理以及搭建主-辅DNS服务器操作指南
查看>>
linux基础命令 cat
查看>>
9.5 18.1-18.5
查看>>
Http常用状态码
查看>>
linux一天一个脚印:进程的管理
查看>>
波音是在自掘死路吗?
查看>>
F5学习——Part 2(F5中的基本元素和standard和Perfomance L4之间的区别)
查看>>
如何利用Python词云和wordart可视化工具对朋友圈数据进行可视化展示
查看>>