分类 "随手发现" 下的文章

将新的hosts文件拷贝到其它三台服务器中

scp /etc/hosts root@slave1:/etc
scp /etc/hosts root@slave2:/etc
scp /etc/hosts root@slave3:/etc

实现免登

scp ~/.ssh/id_dsa.pub hadoop@slave3:~/.ssh/master.pub
ssh hadoop@slave3 "cat ~/.ssh/master.pub>> ~/.ssh/authorized_keys"

阅读全文