VPS从16.04换到18.04,发现vim命令找不到了,只有vi,界面一般,方向键还不对。
重新安装vim就能解决问题:
sudo apt-get remove vim-common
sudo apt-get install vim
二、ssh免密登录
1、首先确认 openssh-server是否安装成功
确认命令:ps -e|grep ssh
看看是否是 sshd,而不是代理
没有的话先启动下ssh,在查看下确认是否成功,不行的话重新安装openssh-server
安装命令: sudo apt-get install openssh-server 攻略:http://www.sunxiaoning.com/linux/545.html/
2、然后配置密钥
https://www.cnblogs.com/guangluwutu/p/9705136.html https://blog.csdn.net/AnneQiQi/article/details/51174060
本人以第二个攻略为主,第一个攻略为辅,顺利配置密钥,实现master无密码登录slave节点。
三、配置hadoop单机模式:
前边已有介绍:https://mp.csdn.net/postedit/99618433
hadoop安装完默认就是单机模式,故需要在单机模式的基础上配置分布式环境。
补充:将下面代码添加到.bashrc文件:(路径按自己的来)
export HADOOP_HOME=