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

 

posted @ 2019-08-29 21:19  Linus小跟班  阅读(201)  评论(0编辑  收藏  举报