当前位置:网站首页>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边栏推荐
- Leetcode 173 Binary search tree iterator (2022.06.22)
- Acwing game 56 [End]
- Imperva- method of finding regular match timeout
- Start appium
- 爬虫框架
- Ers function display of SAP mm
- How to start Jupiter notebook in CONDA virtual environment
- Socket programming (multithreading)
- INT 104_LEC 06
- Introduction to Excel VBA and practical examples
猜你喜欢

Gif verification code analysis

深度学习------不同方法实现lenet-5模型
![[try to hack] IP address](/img/ab/ed91f3094ac913a0d79448a2d19015.png)
[try to hack] IP address

A record of "from scratch" in college student accounts

Introduction to Excel VBA and practical examples

AVL树的实现

Learn to draw Er graph in an article

看了5本书,我总结出财富自由的这些理论

Deep learning ----- different methods to realize vgg16

Vulnhub | DC: 4 |【实战】
随机推荐
建立一有序的顺序表,并实现下列操作: 1.把元素x插入表中并保持有序; 2.查找值为x的元素,若找到将其删除; 3.输出表中各元素的值。
Vulnhub | dc: 3 | [actual combat]
深度学习------卷积(conv2D)底层
MySQL小册子笔记 5 InnoDB 记录存储结构
值得反复回味的81句高人高语
vtk.js鼠標左鍵滑動改變窗比特和窗寬
Guava cache usage summary
5本财富自由好书的精华
[cross border e-commerce solutions] lighthouse will be used for pure IP expansion of new business - continuous efforts!
odoo项目 发送信息到微信公众号或企业微信的做法
Quickly delete the node in the code_ modules
PHP file contains -ctf
看了5本书,我总结出财富自由的这些理论
Mathematical knowledge: fast power fast power
2022 final examination of software project management of School of software, Shandong University (recall version)
Moodle e-learning platform fixes the session hijacking error that leads to pre authorized rce
1278_ FreeRTOS_ Understand the delayed task with the prvaddcurrenttasktodelayedlist interface
MFC Radio Button分组
Image segmentation - improved network structure
力扣(LeetCode)173. 二叉搜索树迭代器(2022.06.22)