OpenStack之一:初始化环境

初始化环境必须在左右节点执行

#:注意node节点要使用7.2

#: 关闭NetworkManager

[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl disable NetworkManager


#: 关闭防火墙

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld


#:关闭selinux


[root@localhost ~]# vim /etc/sysconfig/selinux 
SELINUX=disabled

#: 设置主机名

[root@localhost ~]# vim /etc/hosts
cobbler.magedu.net

#:配置时间同步

[root@localhost ~]# crontab -e
*/5 * * * * /sbin/ntpdate  ntp.sjtu.edu.cn && /usr/sbin/hwclock  -w

猜你喜欢

转载自www.cnblogs.com/maxuebin/p/11432114.html