加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

报错:command not found

发布时间:2020-12-14 01:11:29 所属栏目:Linux 来源:网络整理
导读:? ? linux中如果是最小化安装的系统,执行命令的时候很多会出现没找到命令 [[email?protected] ~ ]# mtr - bash: mtr: command not found[[email?protected] ~ ]# tcping -bash: tcping: command not found 上述中没找到mtr和tcping命令。 ? 解决方法: 运行

?

?

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

[[email?protected] ~]# mtr
-bash: mtr: command not found
[[email?protected] ~]# tcping
-bash: tcping: command not found

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

?

解决方法:

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

?

[[email?protected] ~]# 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.
[[email?protected] ~]# 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.
[[email?protected] ~]# 

?

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

?

yum install -y mtr
yum install -y tcping

?

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读