A resource ready
1, to prepare three servers H1, H2, H3
Second, the configuration server
1, a density log free SSH server in H1; RSA public and private keys generated in H1 (H1 operation)
(1) performs ssh-keygen -t rsa command
(2) to generate the key into the file directory where cd /root/.ssh/
(. 3) the public key (id_rsa.pub file name) is added to the certificate file (named authorized_keys files), has run the following command:
ssh-copy-id 172.26.237.83 ssh-copy-id 172.26.237.84 ssh-copy-id 172.26.237.85
(Note: IP here is H1, H2, H3 internal network IP, you need to enter server password yes and execution)
2, DNS configuration file ( responsible for mapping the host name to an IP address )
(1) env created in the root directory and enter the following command env directory
cat > /root/env/hosts.txt <<EOF 172.26.237.83 H1 172.26.237.84 H2 172.26.237.85 H3 EOF cat /root/env/hosts.txt cat /root/env/hosts.txt >> /etc/hosts
(2)