1.关机:poweroff
2.防火墙的值指令:(iptables是防火墙的意思)
servicce iptables status 查看防火墙状态
chkconfig iptables off 关闭防火墙
3.ssh免密登录(secure shell)
(1)原理及过程:首先hadoop1使用ssh-keygen -t rsa生成密钥对(包含公钥或者私钥),然后使用ssh-copy-id hadoop2,将公钥传给hadoop2,当hadoop1需要连接hadoop2时,会通过hadoop1的私钥与hadoop2手中的公钥结合实现配对连接。连接之后,hadoop1调取hadoop2的信息的时候,hadoop2便可以通过公钥对数据进行加密返还给hadoop1,hadoop1再从手中的私钥进行解密。OK!
(2)命令解读:
ssh-keygen -t rsa,其中,参数为-t rsa,译为使用rsa算法加密生成密钥对。