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

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

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

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

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

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

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

yum install -y net-tools

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

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

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

上一篇:Power Platform 低代码开发手机App(2)-Power Apps 连接Azure SQL Database 读取物联网设备清单


下一篇:64 位win 7或windows 8下的visual studio不能连接Oracle数据库调试网站的问题