首页

安装nginx报"-bash: vm: command not found.."错误提示vim文本编辑器命令没有安装

标签:安装vim命令,VIM文本编辑器没找到,在线安装vim,查看vim     发布时间:2018-08-29   

一、前言

关于在使用ssh客户端安装nginx的时候报“-bash: vim: command not found”错误,提示没有安装VIM文本编辑器

二、解决方法

1. 安装vim命令如下

#yum search vim   //查看vim相关软件信息@b@@b@#yum install -y vim*  //在线安装vim

2.详细安装日志如下

[root@raid2t sbin]# yum  search  vim@b@已加载插件:fastestmirror, refresh-packagekit@b@Loading mirror speeds from cached hostfile@b@epel/metalink                                                                             | 7.9 kB     00:00     @b@ * base: mirrors.aliyun.com@b@ * epel: mirrors.aliyun.com@b@ * extras: mirrors.aliyun.com@b@ * updates: mirrors.aliyun.com@b@base                                                                                      | 3.7 kB     00:00     @b@extras                                                                                    | 3.4 kB     00:00     @b@updates                                                                                   | 3.4 kB     00:00     @b@=============================================== N/S Matched: vim ================================================@b@beakerlib-vim-syntax.noarch : Files for syntax highlighting BeakerLib tests in VIM editor@b@docker-io-vim.x86_64 : vim syntax highlighting files for docker@b@protobuf-vim.x86_64 : Vim syntax highlighting for Google Protocol Buffers descriptions@b@vim-X11.x86_64 : The VIM version of the vi editor for the X Window System@b@vim-common.x86_64 : The common files needed by any version of the VIM editor@b@vim-enhanced.x86_64 : A version of the VIM editor which includes recent enhancements@b@vim-filesystem.x86_64 : VIM filesystem layout@b@vim-jellybeans.noarch : A colorful, dark color scheme for Vim@b@vim-minimal.x86_64 : A minimal version of the VIM editor@b@vim-halibut.noarch : Syntax file for the halibut manual tool@b@@b@  Name and summary matches only, use "search all" for everything.@b@[root@raid2t sbin]# yum  install  -y  vim*@b@已加载插件:fastestmirror, refresh-packagekit@b@设置安装进程@b@Loading mirror speeds from cached hostfile@b@ * base: mirrors.cn99.com@b@ * epel: mirrors.tongji.edu.cn@b@ * extras: mirrors.cn99.com@b@ * updates: mirrors.huaweicloud.com@b@解决依赖关系@b@--> 执行事务检查@b@---> Package vim-X11.x86_64 2:7.4.629-5.el6_8.1 will be 安装@b@--> 处理依赖关系 libgpm.so.2()(64bit),它被软件包 2:vim-X11-7.4.629-5.el6_8.1.x86_64 需要@b@---> Package vim-common.x86_64 2:7.4.629-5.el6_8.1 will be 安装@b@---> Package vim-enhanced.x86_64 2:7.4.629-5.el6_8.1 will be 安装@b@---> Package vim-filesystem.x86_64 2:7.4.629-5.el6_8.1 will be 安装@b@---> Package vim-halibut.noarch 0:1.0-2.20100504svn8934.el6 will be 安装@b@---> Package vim-jellybeans.noarch 0:1.6-1.el6 will be 安装@b@---> Package vim-minimal.x86_64 2:7.4.629-5.el6 will be 升级@b@---> Package vim-minimal.x86_64 2:7.4.629-5.el6_8.1 will be an update@b@--> 执行事务检查@b@---> Package gpm-libs.x86_64 0:1.20.6-12.el6 will be 安装@b@--> 完成依赖关系计算@b@@b@依赖关系解决@b@@b@=================================================================================================================@b@ 软件包                      架构                版本                                    仓库               大小@b@=================================================================================================================@b@正在安装:@b@ vim-X11                     x86_64              2:7.4.629-5.el6_8.1                     base              1.1 M@b@ vim-common                  x86_64              2:7.4.629-5.el6_8.1                     base              6.7 M@b@ vim-enhanced                x86_64              2:7.4.629-5.el6_8.1                     base              1.0 M@b@ vim-filesystem              x86_64              2:7.4.629-5.el6_8.1                     base               15 k@b@ vim-halibut                 noarch              1.0-2.20100504svn8934.el6               epel              5.8 k@b@ vim-jellybeans              noarch              1.6-1.el6                               epel               10 k@b@正在升级:@b@ vim-minimal                 x86_64              2:7.4.629-5.el6_8.1                     base              422 k@b@为依赖而安装:@b@ gpm-libs                    x86_64              1.20.6-12.el6                           base               28 k@b@@b@事务概要@b@=================================================================================================================@b@Install       7 Package(s)@b@Upgrade       1 Package(s)@b@@b@总下载量:9.4 M@b@下载软件包:@b@@b@http://mirrors.cn99.com/centos/6.10/os/x86_64/Packages/gpm-libs-1.20.6-12.el6.x86_64.rpm: [Errno 12] Timeout on http://mirrors.cn99.com/centos/6.10/os/x86_64/Packages/gpm-libs-1.20.6-12.el6.x86_64.rpm: (28, 'connect() timed out!')@b@尝试其他镜像。@b@http://mirrors.huaweicloud.com/repository/centos/6.10/os/x86_64/Packages/gpm-libs-1.20.6-12.el6.x86_64.rpm: [Errno 12] Timeout on http://mirrors.huaweicloud.com/repository/centos/6.10/os/x86_64/Packages/gpm-libs-1.20.6-12.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')@b@尝试其他镜像。@b@^C@b@ Current download cancelled, interrupt (ctrl-c) again within 二 seconds@b@to exit.@b@@b@(1/8): gpm-libs-1.20.6-12.el6.x86_64.rpm                                                                                                                                                                                                 |  28 kB     00:00     @b@(2/8): vim-X11-7.4.629-5.el6_8.1.x86_64.rpm                                                                                                                                                                                              | 1.1 MB     00:01     @b@(3/8): vim-common-7.4.629-5.el6_8.1.x86_64.rpm                                                                                                                                                                                           | 6.7 MB     00:11     @b@(4/8): vim-enhanced-7.4.629-5.el6_8.1.x86_64.rpm                                                                                                                                                                                         | 1.0 MB     00:01     @b@(5/8): vim-filesystem-7.4.629-5.el6_8.1.x86_64.rpm                                                                                                                                                                                       |  15 kB     00:00     @b@https://mirrors.tongji.edu.cn/epel/6/x86_64/Packages/v/vim-halibut-1.0-2.20100504svn8934.el6.noarch.rpm: [Errno 12] Timeout on https://mirrors.tongji.edu.cn/epel/6/x86_64/Packages/v/vim-halibut-1.0-2.20100504svn8934.el6.noarch.rpm: (28, 'connect() timed out!')@b@尝试其他镜像。@b@^C@b@(6/8): vim-halibut-1.0-2.20100504svn8934.el6.noarch.rpm                                                                                                                                                                                  | 5.8 kB     00:00     @b@(7/8): vim-jellybeans-1.6-1.el6.noarch.rpm                                                                                                                                                                                               |  10 kB     00:00     @b@(8/8): vim-minimal-7.4.629-5.el6_8.1.x86_64.rpm                                                                                                                                                                                          | 422 kB     00:00     @b@----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------@b@总计                                                                                                                                                                                                                             61 kB/s | 9.4 MB     02:36     @b@运行 rpm_check_debug @b@执行事务测试@b@事务测试成功@b@执行事务@b@  正在安装   : gpm-libs-1.20.6-12.el6.x86_64                                                                                                                                                                                                                1/9 @b@  正在安装   : 2:vim-filesystem-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                    2/9 @b@  正在安装   : 2:vim-common-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                        3/9 @b@  正在安装   : vim-halibut-1.0-2.20100504svn8934.el6.noarch                                                                                                                                                                                                 4/9 @b@  正在安装   : 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                      5/9 @b@  正在安装   : 2:vim-X11-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                           6/9 @b@  正在安装   : vim-jellybeans-1.6-1.el6.noarch                                                                                                                                                                                                              7/9 @b@  正在升级   : 2:vim-minimal-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                       8/9 @b@  清理       : 2:vim-minimal-7.4.629-5.el6.x86_64                                                                                                                                                                                                           9/9 @b@  Verifying  : 2:vim-minimal-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                       1/9 @b@  Verifying  : 2:vim-common-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                        2/9 @b@  Verifying  : 2:vim-filesystem-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                    3/9 @b@  Verifying  : vim-halibut-1.0-2.20100504svn8934.el6.noarch                                                                                                                                                                                                 4/9 @b@  Verifying  : vim-jellybeans-1.6-1.el6.noarch                                                                                                                                                                                                              5/9 @b@  Verifying  : 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                      6/9 @b@  Verifying  : 2:vim-X11-7.4.629-5.el6_8.1.x86_64                                                                                                                                                                                                           7/9 @b@  Verifying  : gpm-libs-1.20.6-12.el6.x86_64                                                                                                                                                                                                                8/9 @b@  Verifying  : 2:vim-minimal-7.4.629-5.el6.x86_64                                                                                                                                                                                                           9/9 @b@@b@已安装:@b@  vim-X11.x86_64 2:7.4.629-5.el6_8.1    vim-common.x86_64 2:7.4.629-5.el6_8.1    vim-enhanced.x86_64 2:7.4.629-5.el6_8.1    vim-filesystem.x86_64 2:7.4.629-5.el6_8.1    vim-halibut.noarch 0:1.0-2.20100504svn8934.el6    vim-jellybeans.noarch 0:1.6-1.el6   @b@@b@作为依赖被安装:@b@  gpm-libs.x86_64 0:1.20.6-12.el6                                                                                                                                                                                                                               @b@@b@更新完毕:@b@  vim-minimal.x86_64 2:7.4.629-5.el6_8.1                                                                                                                                                                                                                        @b@@b@完毕!
  • <<相关内容>>
<<热门下载>>