zoukankan      html  css  js  c++  java
  • 报错:command not found

    linux中如果是最小化安装的系统,执行命令的时候很多会出现没找到命令

    [root@localhost ~]# mtr
    -bash: mtr: command not found
    [root@localhost ~]# tcping
    -bash: tcping: command not found

    上述中没找到mtr和tcping命令。

    解决方法:

    运行search命令查找对应包名下载即可。

    [root@localhost ~]# yum search tcping
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.01link.hk
     * epel: mirror.pregi.net
     * extras: centos.01link.hk
     * updates: centos.01link.hk
    ============================================ N/S Matched: tcping ============================================
    tcping.x86_64 : Check of TCP connection to a given IP/Port
    
      Name and summary matches only, use "search all" for everything.
    [root@localhost ~]# yum search mtr
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.01link.hk
     * epel: mirror.pregi.net
     * extras: centos.01link.hk
     * updates: centos.01link.hk
    ============================================= N/S Matched: mtr ==============================================
    mtr-gtk.x86_64 : The GTK+ interface for mtr
    mtr.x86_64 : A network diagnostic tool
    pcp-import-mrtg2pcp.x86_64 : Performance Co-Pilot tools for importing MTRG data into PCP archive logs
    
      Name and summary matches only, use "search all" for everything.
    [root@localhost ~]# 

    上述就是查找出对应包名了。执行对应命令即可

    yum install -y mtr
    yum install -y tcping

    嗯,可能有人说这两个包直接yum安装就行了根本不用搜。其实这个whois试下,直接yum这个是没有包的。他的正确包名是jwhois,这就体验搜索的重要性了。

  • 相关阅读:
    拼接数组的几种方法
    小议GetHashCode()方法
    如何在窗体间传递数据!
    设置TextBox控件的滚动条位置
    关于Console.Read()方法的一些误解!
    从内存布局角度谈谈值类型和引用类型!
    在Windows线程中模拟其他用户上下文!
    将文本插入TextBox控件的光标位置!
    用C#实现屏幕键盘!
    CLR的程序集定位算法
  • 原文地址:https://www.cnblogs.com/Crazy-Liu/p/10862050.html
Copyright © 2011-2022 走看看