- 问题描述
[root@localhost ~]# vim /etc/profile
-bash: vim: 未找到命令
-
解决办法
使用yum安装方法解决 yum -y install vim*
[root@localhost ~]# yum -y install vim*
已加载插件:fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: mirrors.zju.edu.cn
* updates: mirrors.aliyun.com
当看到下面提示即完成
更新完毕:
vim-minimal.x86_64 2:7.4.160-4.el7
作为依赖被升级:
libdrm.x86_64 0:2.4.83-2.el7
完毕!
网友评论