2025.2.26

admin
47
2025-02-28

笔记下载:http://note.zjznb.cn/#/?code=XZ6BD

更新组件

yum remove -y NetworkManager firewalld

yum upgrade -y

yum install python-openstackclient openstack-selinux

openstack-utils crudini expect chrony lsof net-tools

vim wget bash-completion bind -y

systemctl status chronyd 查看有没有安装成功

时间同步

controller

#chrony

vi /etc/chrony.conf

第3-6行用#注释

第七行添加 server controller iburst

下面两行添加到最后

allow controller的ip

local stratum 10

systemctl restart chronyd

systemctl enable chronyd

compute

vi /etc/chrony.conf

第3-6行用#注释

第七行添加 server controller iburst

controller

ssh-keygen 回车

ssh-copy-id compute yes 输compute的密码

compute

ssh-keygen 回车

ssh-copy-id controller yes 输controller的密码

配置完查看一下yum repolist有没有错误

compute 如果出现

ftp://controller/openstack/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to controller:21; Connection refused"

启动vsftpd 改目录为/opt

yum remove vsftpd

yum -y install vsftpd

systemctl start vsftpd

systemctl status vsftpd

vi /etc/vsftpd/vsftpd.conf

anon_root=/opt

systemctl restart vsftpd

两台机子如果/etc/yum.repos.d文件夹下出现Centos*文件,把文件移到文件夹里面再清理缓存

动物装饰