• docker容器中安装vim 、telnet、ifconfig、ping、curl命令


    ###

    一、在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found

    问题:apt-get install vim安装vim 命令时,提示:如下内容
       Reading package lists... Done
       Building dependency tree       
       Reading state information... Done
       E: Unable to locate package vim
    
    
    解决办法:apt-get update
       这个命令的作用是:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。

    二、安装vim命令

    apt-get install -y vim

    三、安装telnet命令

    apt-get install -y telnet

    四、安装ifconfig命令

    apt-get install -y net-tools

    五、安装ping命令

    apt-get install -y iputils-ping

    六、安装curl命令

    apt install -y curl

    ###

     

  • 相关阅读:
    Python+MySQL学习笔记(一)
    MySQL的基本操作
    2016.08.15
    使用vue为image的src动态赋值
    json对象与json字符串的转化
    js三元运算符
    uniapp vue中的短信验证码
    设计模式
    回调函数
    自定义注解
  • 原文地址:https://www.cnblogs.com/faithH/p/12018453.html
Copyright © 2020-2023  润新知