centos7 (ifconfig不能使用) -bash: ifconfig: command not found

 

[root@localhost ~]# ifconfig
-bash: ifconfig: command not found

 

输入ip addr 确认IP地址是否设置正常,设置好如下所示,如果没有获取到IP地址则设置一个即可。

 

确认ifconfig命令是否未安装 

ls /sbin|grep ifconfig

 

 安装net-tool插件,此插件中带有此命令

sudo yum install net-tools

 

等待安装完成,再次输入ifconfig,成功。 

 

 

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...