Skip to content

Commit 656f0cf

Browse files
committed
🚧 Wormhole
1 parent 4f32322 commit 656f0cf

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

markdown-file/Wormhole-Install-And-Settings.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#### 特别说明
3939

40-
- **5 台 8C32G 服务器 CentOS 7.5,内存推荐 16G 或以上。**
40+
- **4 台 8C32G 服务器 CentOS 7.5,内存推荐 16G 或以上。**
4141
- **为了方便,所有服务器都已经关闭防火墙,并且在云服务上设置安全组对外开通所有端口**
4242
- **全程 root 用户**
4343
- 整体部署结构图:
@@ -55,7 +55,6 @@ hostnamectl --static set-hostname linux01
5555
hostnamectl --static set-hostname linux02
5656
hostnamectl --static set-hostname linux03
5757
hostnamectl --static set-hostname linux04
58-
hostnamectl --static set-hostname linux05
5958
```
6059

6160
- 给所有服务器设置 hosts:`vim /etc/hosts`
@@ -65,7 +64,6 @@ hostnamectl --static set-hostname linux05
6564
172.16.0.92 linux02
6665
172.16.0.133 linux03
6766
172.16.0.159 linux04
68-
172.16.0.184 linux05
6967
```
7068

7169
- 在 linux01 生成密钥对,设置 SSH 免密登录
@@ -88,7 +86,6 @@ ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 root@linux03(根据提示输入 linux03
8886
8987
ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 root@linux04(根据提示输入 linux04 密码)
9088
91-
ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 root@linux05(根据提示输入 linux05 密码)
9289
9390
在 linux01 上测试
9491
ssh linux01
@@ -98,8 +95,6 @@ ssh linux02
9895
ssh linux03
9996
10097
ssh linux04
101-
102-
ssh linux05
10398
```
10499

105100
- 安装基础软件:`yum install -y zip unzip lrzsz git epel-release wget htop deltarpm`
@@ -116,8 +111,6 @@ linux03
116111
[kafka-host]
117112
linux04
118113
119-
[wh-host]
120-
linux05
121114
```
122115

123116
- 测试 Ansible:`ansible all -a 'ps'`,必须保证能得到如下结果:
@@ -135,12 +128,6 @@ linux02 | CHANGED | rc=0 >>
135128
10603 pts/1 00:00:00 python
136129
10604 pts/1 00:00:00 ps
137130
138-
linux05 | CHANGED | rc=0 >>
139-
PID TTY TIME CMD
140-
10573 pts/0 00:00:00 sh
141-
10586 pts/0 00:00:00 python
142-
10587 pts/0 00:00:00 ps
143-
144131
linux03 | CHANGED | rc=0 >>
145132
PID TTY TIME CMD
146133
10586 pts/1 00:00:00 sh
@@ -242,8 +229,6 @@ scp -r /opt/jdk-8u191-linux-x64.tar.gz root@linux02:/opt
242229
scp -r /opt/jdk-8u191-linux-x64.tar.gz root@linux03:/opt
243230
244231
scp -r /opt/jdk-8u191-linux-x64.tar.gz root@linux04:/opt
245-
246-
scp -r /opt/jdk-8u191-linux-x64.tar.gz root@linux05:/opt
247232
```
248233

249234
- 在 linux01 创建脚本文件:`vim /opt/jdk8-playbook.yml`

0 commit comments

Comments
 (0)