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,这就体验搜索的重要性了。

  • 相关阅读:
    mosquitto配置文件说明
    Mac 下 Mosquitto 安装和配置 (Mosquitto为开源的mqtt服务器)
    transfer learning
    NP问题
    旋转矩阵与四元数
    在数学中一个非凸的最优化问题是什么意思?
    国产操作系统优麒麟安装步骤
    齐次坐标
    反走样
    数据分析师
  • 原文地址:https://www.cnblogs.com/Crazy-Liu/p/10862050.html
Copyright © 2011-2022 走看看