In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the installation of consul under Spotify under Linux, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
Consul is a google open source service discovery and configuration management center service developed in the go language. Built-in service registration and discovery framework, distributed consistency protocol implementation, health check, Key/Value storage, multi-data center solution, no longer need to rely on other tools (such as ZooKeeper, etc.).
Installation
Yum can be used directly for installation on CentOS
Sudo yum install-y yum-utilssudo yum-config-manager-- add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.reposudo yum- y install consul
You can also download the binary package directly and decompress it and use it directly.
Tar zxvf consul_1.9.6_linux_amd64.zip-C / usr/local/bin/
Start the service (single node)
Nohup consul agent- server-data-dir=/data/consul-data/-node=node1-bind=0.0.0.0-bootstrap-expect=1-client=0.0.0.0-ui > / data/consul-data/consul.log &-server specifies the server agent-data-dir l data storage path-the number of server nodes expected by bootstrap-expect. Consul waits until the specified number of sever to boot the entire cluster-bind: this address is used for communication within the cluster. All nodes in the cluster must have reachable addresses. The default is 0.0.0.0-node: the name of the node in the cluster, which must be unique in a cluster. By default, it is the hostname of the node-ui: management ui of web. To view services and nodes, you can access UI-client: provide HTTP, DNS, RPC and other services through access: port 8500. Default is 127.0.0.1. No external services are provided. If necessary, change it to 0.0.0.0 single node capacity expansion nohup consul agent-bind=0.0.0.0-client=0.0.0.0-data-dir=/data/consul-data/-node=node2-join=192.168.122.100 > / data/consul-data/consul.log 2 > & 1 &
192.168.122.100 is the IP of the server just now.
The above is all the contents of the article "installing consul under Spotify under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.