当前位置:网站首页>Quickly create a consumer cluster
Quickly create a consumer cluster
2022-06-23 08:10:00 【Ruohai】
Operating environment
- Three stations AlpineLinux host
- The host names are
host-11/12/13 - IP The addresses are
192.168.0.11/12/13
- The host names are
Automatically execute scripts
#!/bin/sh
#
###############################################################
# consul-1/2/3
apk add consul
rc-update add consul boot
cat <<EOF >/etc/consul/server.json
{
"datacenter": "test",
"data_dir": "/var/consul",
"server": true,
"bootstrap_expect": 3,
"bind_addr": "{{ GetInterfaceIP \"eth0\" }}",
"client_addr": "0.0.0.0",
"retry_join": [
"192.168.0.11",
"192.168.0.12",
"192.168.0.13"
],
"ui_config": {
"enabled": true
}
}
EOF
rc-service consul start
###############################################################
# consul-cli
consul members
consul operator raft list-peers边栏推荐
猜你喜欢
随机推荐
顺序表课设
2 corrections de bogues dans l'outil aquatone
[kubernetes] download address of the latest version of each major version of kubernetes
A record of "from scratch" in college student accounts
What are open source software, free software, copyleft and CC? Can't you tell them clearly?
openni. utils. OpenNIError: (OniStatus.ONI_STATUS_ERROR, b‘DeviceOpen using default: no devices found‘
@What is the difference between controller and @restcontroller?
Google common syntax
PHP file contains -ctf
Crawler frame
socket编程——select模型
Captain Abu's soul torture
Deep learning ----- different methods to implement lenet-5 model
openvino系列 18. 通过OpenVINO和OpenCV实现实时的物体识别(RTSP,USB视频读取以及视频文件读取)
Go language basic conditional statement if
openvino系列 19. OpenVINO 与 PaddleOCR 实现视频实时OCR处理
力扣(LeetCode)173. 二叉搜索树迭代器(2022.06.22)
Active Directory之AD对象
Odoo project sends information to wechat official account or enterprise wechat
vtk. JS left mouse button sliding to change window level and window width








