赞
踩
(1)设置控制节点主机名为controller,设置计算节点主机名为compute;
[root@controller ~]# hostnamectl set-hostname controller [root@compute ~]# hostnamectl set-hostname compute
(2)修改hosts文件将IP地址映射为主机名;
[root@controller ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.100.10 controller 192.168.100.20 compute
(3)关闭控制节点的防火墙,设置开机不启动;
[root@controller ~]# systemctl stop firewalld [root@controller ~]# systemctl disable firewalld
(4)设置SELinux为Permissive 模式。
[root@controller ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/75516
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。