最小模式安装的CentOS-7在使用ifconfig命令查看ip时会出现-bash: ifconfig:command not found。

解决CentOS-7 ifconfig:command not found

使用yum安装net-tools来解决:

yum install net-tools
或者
yum install net-tools -y
-y:表示在安装过程中不需要按y进行确认

解决CentOS-7 ifconfig:command not found

看到Complete,说明安装成功。

解决CentOS-7 ifconfig:command not found

再次使用ifconfig查看ip:

解决CentOS-7 ifconfig:command not found

相关文章: