Linux最小化安装后运行ifconfig 、ping命令命令提示“command not find”的问题

  Linux最小化安装后默认是没有安装相应的网络工具包net-tools导致运行报错

一、Ubuntu

           使用apt-get update

           apt install net-tools #ifconfig
           apt install inputils-ping #ping

          运行上述三条命令即可使用ping ifconfig命令

二  centos中只是包管理器不相同,大体上一致

        使用yum包管理器进行程序查询与安装

        yum search net-tools

        yum install  net-tools.x86-64

      

 

    

 

posted @ 2022-11-28 15:45  funkergx  阅读(508)  评论(0)    收藏  举报