报错: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,这就体验搜索的重要性了。
标签:mtr,tcping,hk,command,yum,centos.01,found,link,报错 来源: https://www.cnblogs.com/Crazy-Liu/p/10862050.html