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

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

在CentOS最小安装时是没有附带ifconfig,我们进入sbin目录下可以查看到ifconfig命令是没有安装的

 

因此这个时候我们只要安装net-tool插件,此插件中带有ipconfig命令

yum install -y net-tools

安装完成后,可以直接使用ifconfig命令了  

 

猜你喜欢

转载自www.cnblogs.com/Chan94/p/10659391.html