zoukankan      html  css  js  c++  java
  • 系统提示没有ifconfig,或者没有nslookup命令

    没有ifconfig 命令 

    [root@client ~]# ifconfig
    -bash: ifconfig: 未找到命令
    [root@client ~]# yum install ifconfig
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    没有可用软件包 ifconfig。
    错误:无须任何处理
    [root@client ~]# yum search ifconfig
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    =========================== 匹配:ifconfig ===========================
    net-tools.x86_64 : Basic networking tools

    [root@client ~]# yum  install net-tools.x86_64 -y
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    正在解决依赖关系
    --> 正在检查事务
    ---> 软件包 net-tools.x86_64.0.2.0-0.24.20131004git.el7 将被 安装
    --> 解决依赖关系完成
    依赖关系解决
    ======================================================================
     Package      架构      版本                           源        大小
    ======================================================================
    正在安装:
     net-tools    x86_64    2.0-0.24.20131004git.el7       cdrom    306 k
    事务概要
    ======================================================================
    安装  1 软件包
    总下载量:306 k
    安装大小:918 k
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : net-tools-2.0-0.24.20131004git.el7.x86_64         1/1
      验证中      : net-tools-2.0-0.24.20131004git.el7.x86_64         1/1
    已安装:
      net-tools.x86_64 0:2.0-0.24.20131004git.el7                        
    完毕!
    [root@client ~]# ifconfig
    ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.116.68  netmask 255.255.255.0  broadcast 192.168.116.255
            inet6 fe80::da68:b193:b117:d2a2  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:47:77:a6  txqueuelen 1000  (Ethernet)
            RX packets 12709  bytes 15217844 (14.5 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 4778  bytes 439219 (428.9 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 12  bytes 1044 (1.0 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 12  bytes 1044 (1.0 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     
     

    没有安装nslookup命令解决办法

    [root@client ~]# yum search nslookup
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    警告:没有匹配 nslookup 的软件包
    No matches found
    [root@client ~]# yum install  nslookup
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    没有可用软件包 nslookup。
    错误:无须任何处理
    [root@client ~]# yum search  nslookup
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    警告:没有匹配 nslookup 的软件包
    No matches found
    [root@client ~]# yum -y install bind-utils
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    正在解决依赖关系
    --> 正在检查事务
    ---> 软件包 bind-utils.x86_64.32.9.9.4-72.el7 将被 安装
    --> 正在处理依赖关系 bind-libs = 32:9.9.4-72.el7,它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 liblwres.so.90()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 libisccfg.so.90()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 libisccc.so.90()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 libisc.so.95()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 libdns.so.100()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在处理依赖关系 libbind9.so.90()(64bit),它被软件包 32:bind-utils-9.9.4-72.el7.x86_64 需要
    --> 正在检查事务
    ---> 软件包 bind-libs.x86_64.32.9.9.4-72.el7 将被 安装
    --> 解决依赖关系完成
    依赖关系解决
    ======================================================================
     Package         架构        版本                    源          大小
    ======================================================================
    正在安装:
     bind-utils      x86_64      32:9.9.4-72.el7         cdrom      206 k
    为依赖而安装:
     bind-libs       x86_64      32:9.9.4-72.el7         cdrom      1.0 M
    事务概要
    ======================================================================
    安装  1 软件包 (+1 依赖软件包)
    总下载量:1.2 M
    安装大小:3.0 M
    Downloading packages:
    ----------------------------------------------------------------------
    总计                                      72 MB/s | 1.2 MB  00:00    
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : 32:bind-libs-9.9.4-72.el7.x86_64                  1/2
      正在安装    : 32:bind-utils-9.9.4-72.el7.x86_64                 2/2
      验证中      : 32:bind-libs-9.9.4-72.el7.x86_64                  1/2
      验证中      : 32:bind-utils-9.9.4-72.el7.x86_64                 2/2
    已安装:
      bind-utils.x86_64 32:9.9.4-72.el7                                  
    作为依赖被安装:
      bind-libs.x86_64 32:9.9.4-72.el7                                   
    完毕!
    [root@client ~]# nslookup www.baidu.com
    Server:  202.106.0.20
    Address: 202.106.0.20#53
    Non-authoritative answer:
    www.baidu.com canonical name = www.a.shifen.com.
    Name: www.a.shifen.com
    Address: 182.61.200.6
    Name: www.a.shifen.com
    Address: 182.61.200.7
  • 相关阅读:
    SkyWalking链路追踪系统-告警篇
    在k8s中解决pod资源的正确识别
    SkyWalking链路追踪系统-接入篇
    Jenkins API+Pipeline深度实践之input的自动化
    SkyWalking链路追踪系统-部署篇
    DevOps建设之基于钉钉OA审批流的自动化上线
    使用kube-prometheus部署k8s监控(最新版)
    基于k8s手动部署rabbitmq集群
    ant desgin vue中table复选框根据状态disabled置灰
    ant design vue 中tree实现单选
  • 原文地址:https://www.cnblogs.com/elin989898/p/11360631.html
Copyright © 2011-2022 走看看