問題展示
ifconfig: command not found
原因分析
- net-tools 模塊沒有安裝
- ifconfig 程序異常
解決方案
第一步:查詢一下ifconfig模塊是不是已經存在
cd /sbin/
然後
find . -name ifconfig
如下截圖:(我的是已經安裝完的,所以能找到)
第二步:如果沒有就安裝 net-tools ,如果有就卸載重裝
yum install net-tools
如下圖
安裝過程中需要輸入幾次 確定( y)