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

  • 相关阅读:
    Sql Server 收缩日志文件原理及always on 下的实践
    SQL Agent服务无法启动如何破
    Sql Server Always On 读写分离配置方法
    SQL SERVER 9003错误解决方法 只适用于SQL2000
    SQL Server 数据库分离与附加
    SQL SERVER 的模糊查询 LIKE
    sqlserver 时间格式函数详细
    浅谈SQL Server中的三种物理连接操作
    谈一谈SQL Server中的执行计划缓存(下)
    asp.net获取当前系统的时间
  • 原文地址:https://www.cnblogs.com/Crazy-Liu/p/10862050.html
Copyright © 2011-2022 走看看