-bash: /root/.rvm/scripts/rvm: No such file or directory
通过一下方式安装的rvm (rvm的安装参考 https://blog.csdn.net/u013938578/article/details/118221111)
curl -L get.rvm.io | bash -s stable
默认是在 /usr/local/rvm下,但用ssh做免密登录时,报一下错误
[root@hadoop bin]# ssh localhost Last login: Tue May 24 18:07:23 2022 -bash: /root/.rvm/scripts/rvm: No such file or directory [root@hadoop ~]#
经无意间发现,~/.bash_profile,此文件中是指定了rvm的路径,将他修改过来即可