1. 程式人生 > >CentOS 7.0下解決ifconfig: command not found的方法

CentOS 7.0下解決ifconfig: command not found的方法

使用 最小 分享圖片 bin ifconf src mman 技術 centos

在CentOS7.0中輸入ifconfig命令會遇到-bash: ifconfig: command not found。

技術分享圖片

在CentOS最小安裝時是沒有附帶ifconfig,我們進入sbin目錄下可以查看到ifconfig命令是沒有安裝的

技術分享圖片

技術分享圖片

因此這個時候我們只要安裝net-tool插件,此插件中帶有ipconfig命令

yum install -y net-tools

技術分享圖片

安裝完成後,可以直接使用ifconfig命令了  

技術分享圖片

CentOS 7.0下解決ifconfig: command not found的方法