1、vi空格/etc/hosts(点击回车) 2、(删除当前页面内容后编辑) 192.168.✘.✘空格hadoop1 192.168.✘.✘空格hadoop2 192.168.✘.✘空格hadoop3 3、Esc⇨wq!(保存退出)!是强制退出