1: Single machine password-free login configuration1. Set the virtual machine host namehostnamectl --static set-hostname hadoop001 The --static parameter means that hadoop001 is the host name of the virtual machine permanently. 2. Configure the mapping relationship between host name and IP address in the virtual machinevi /etc/hosts Add at the end of the file (the IP address can be viewed using the command ip addr) 192.168.17.131 hadoop001 3. Turn off the firewallsystemctl stop firewalld.service systemctl disable firewalld.service 4. Execute the following command:ssh-keygen -t rsa (After executing the command, just press the Enter key three times) cd ~/.ssh/ ssh-copy-id -i id_rsa.pub root@hadoop001 success! ! ! 2: Fully distributed password-free login configuration1. Set the host name of each virtual machinehostnamectl --static set-hostname hadoop001 (master node) hostnamectl --static set-hostname hadoop002 (from node 1) hostnamectl --static set-hostname hadoop003 (from node 2) The --static parameter means that hadoop001 is the host name of the virtual machine permanently. 2. Configure the mapping relationship between the host name and the IP address in the virtual machine (this operation must be performed on each machine)vi /etc/hosts Add at the end of the file (the IP address can be viewed using the command ip addr) 192.168.17.131 hadoop001 192.168.17.132 hadoop002 192.168.17.133 hadoop004 3. Turn off the firewall (this needs to be done on every machine)systemctl stop firewalld.service systemctl disable firewalld.service 4. Execute the following command:ssh-keygen -t rsa (After executing the command, just press the Enter key three times) cd ~/.ssh/ ssh-copy-id -i id_rsa.pub root@hadoop001 ssh-copy-id -i id_rsa.pub root@hadoop002 ssh-copy-id -i id_rsa.pub root@hadoop003 success! ! ! This is the end of this article about the detailed tutorial on Linux configuration of password-free login for stand-alone and full distribution. For more relevant Linux password-free login for stand-alone and full distribution content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Solution for mobile browsers not supporting position: fix
>>: CSS3 to achieve timeline effects
This article shares with you a detailed tutorial ...
Table of contents 1. Description 2. Download rela...
function 0. Display current time Command: select ...
Only display Docker container mount directory inf...
This article mainly introduces the implementation...
WeChat applet uniapp realizes the left swipe to d...
Table of contents 8. CSS3 click button circular p...
Today, I encountered a small problem that after s...
Recently, when I was working on a conference heal...
Table of contents 1. Enter a directory and create...
This article shares the specific code for JavaScr...
This article is based on Linux centos8 to install...
This article is translated from the blog Usability...
Docker includes three basic concepts: Image: A Do...
1. Upload rz to the server and decompress it rz [...