zoukankan      html  css  js  c++  java
  • linux下安装ping命令

    使用docker仓库下载的ubuntu 14.04 镜像。里面精简的连 ping 命令都没有。google 百度都搜索不到ping 命令在哪个包里。

    努力找了半天,在一篇文章的字里行间发现了 ping 的来历~

    root@node2:/# apt-get install inetutils-ping

    还有ifconfig   可以用 apt-get install net-tools 来安装~ 

    -----------------------------------------------------------------

    再来补充(解决不知道命令怎样安装的终极办法)

    今天又新拉最新的centos 镜像,创建好容器之后,进入容器竟然连service 命令都没有。于是继续谷歌,后来找到了whatprovides  这个命令,找到一台装有service 命令的主机,执行

    whereis service 

    找到service 所在路径

    然后利用下面命令得到是哪个包安装了service

     yum whatprovides /sbin/service
    

    得到如下结果

    initscripts-9.49.30-1.el7.x86_64 : The inittab file and the /etc/init.d scripts
    Repo        : installed
    Matched from:
    Filename    : /sbin/service

    最后 yum install initscripts 就搞定了

  • 相关阅读:
    对MVC HtmlHepler控件扩展(转载)
    通过源代码研究ASP.NET MVC中的Controller和View(一)(转载)
    rasmol使用方法
    经典笑话
    直线回归的概念
    众数
    Python ImportError: No module named Tkinter
    小干扰RNA
    complementary DNA, cDNA
    反义RNA
  • 原文地址:https://www.cnblogs.com/iamdevops/p/5743157.html
Copyright © 2011-2022 走看看