1 | hostnamectl set-hostname 主机名 --static |
1 | vi /etc/hosts
|
1 2 3 4 | IPaddress1 server1 IPaddress2 agent1 IPaddress3 agent2 IPaddress4 agent3 |
1 2 | systemctl stop firewalld.service systemctl disable firewalld.service |
1 | ssh-keygen -t rsa |
1 | ssh-copy-id -i ~/.ssh/id_rsa.pub root@节点IP |