Centos7 Minni 安装 执行ifconfig命令出现 -bash ifconfig command not found 的解决方法

1) have a root privilege shell or be on the sudo list.

2a) At a root shell prompt (#)

yum install net-tools

2b) User account on the sudo list

sudo yum install net-tools

If the package is installed it will state so and exit yum. (Then it sounds like a path issue). If not installed yum will prompt the user to continue after a few local / network package checks. The install will (should) take but a moment.. presto ifconfig is now installed.

If you feel adventurous.. The equivalent of using ifconfig in displaying the interface / address information using ip

ip addr 
 
posted @ 2017-03-02 10:56  FreePress  阅读(270)  评论(0编辑  收藏  举报