| 192.168.116.137 | master |
|---|---|
| 192.168.116.138 | node1 |
| 192.168.116.139 | node2 |
systemctl stop firewalld
systemctl disable firewalld
sed -i ‘s/enforcing/disabled/’ /etc/selinux/config
或者
setenforce 0
临时禁用
swapoff -a
永久禁用
若需要重启后也生效,在禁用swap后还需修改配置文件/etc/fstab,注释swap
sed -ri 's/.*swap.*/#&/' /etc/fstab #永久关闭swap分区,&符号在sed命令中代表上次匹配的结果
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-y4Kh6vyX-1667148672385)(F:\typorase\jpg\1049.png)]](https://1000bd.com/contentImg/2024/05/22/6c0b47581ea8a20b.png)
vim /etc/hosts
192.168.116.