1. 安装ifconfig
yum search ifconfig
2. 创建.ssh目录,并copy以下文件,并修改目录及文件权限为700
- authorized_keys
- config
- id_rsa_personal
3. 需要升级curl
yum update -y nss curl libcurl
4. 升级内核
- name: 导入公钥
shell: rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org - name: 安装kernel源
shell: rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm - name: 安装kernel
shell: yum --disablerepo=* --enablerepo=elrepo-kernel install -y kernel-ml.x86_64 - name: 设置默认启动项
shell: grub2-set-default 0 && grub2-mkconfig -o /etc/grub2.cfg - name: 重启系统
shell: init 6
5.修改节点名称
vi /etc/hostname
附:
centos镜像地址密码:aauh