【第22期】观点:IT 行业加班,到底有没有价值?

CentOS7执行ifconfig Command not found 未找到命

转载 2015年11月17日 23:08:47

本文来为各位介绍一下CentOS7执行ifconfig Command not found 未找到命令错误问题的解决办法,希望能帮助到大家。


CentOS7刚发布,我忍不住把DELL T410从CentOS6升级到CentOS7。好不容易等安装结束后,立即配置网络,然后在yum源上安装环境。可是执行ifconfig的时候系统提示让我傻了眼:
[root@chaoge ~]# ifconfig
-bash: ifconfig: 未找到命令
这可是新安装的系统,怎么会没找到熟悉ifconfig命令呢?网上搜一下,一大堆人都在说是环境变量问题,但我确信我的/etc/profile设置是对的,于是终于找到一篇文章说是安装下net-tools就好

 代码如下 复制代码
[root@chaoge ~]# yum install net-tools

已加载插件:fastestmirror

 代码如下 复制代码
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base                                                                                                                                                                                           | 3.6 kB  00:00:00    
extras                                                                                                                                                                                         | 3.3 kB  00:00:00    
updates                                                                                                                                                                                        | 3.4 kB  00:00:00    
updates/7/x86_64/primary_db                                                                                                                                                                    | 2.8 MB  00:00:08    
Determining fastest mirrors

软件包 net-tools-2.0-0.17.20131004git.el7.x86_64 已安装并且是最新版本
无须任何处理
因为我已安装过net-tools所以提示我已经安装,现在熟悉的ifconfig又回来了

 代码如下 复制代码

[root@chaoge ~]# ifconfig
em2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 78:2b:cb:41:9a:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.48  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::7a2b:cbff:fe41:9a02  prefixlen 64  scopeid 0x20<link>
        ether 78:2b:cb:41:9a:02  txqueuelen 1000  (Ethernet)
        RX packets 82668  bytes 7831470 (7.4 MiB)
        RX errors 0  dropped 153388  overruns 0  frame 0
        TX packets 1276  bytes 204913 (200.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 12  bytes 1071 (1.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1071 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 

举报

相关文章推荐

Centos7 ifconfig Command not found

yum install net-tools 一命令搞定

centos7提示ifconfig command not found

安装centos7时,选择了minimal install的话,没有安装

程序员升职加薪指南!还缺一个“证”!

CSDN出品,立即查看!

centos7提示ifconfig command not found解决

安装centos7时,选择了minimal install的话,没有安装网络组件。   yum install net-tools   可以解决问题。

执行 pod install后提示 -bash: pod: command not found(未找到命令)的解决方法

今天打开终端打算更新一下Podfile内容,居然出错了:提示 -bash: pod: command not found(未找到命令) 很简单,先更新一下cocoapods: sudo gem in...

ifconfig command not found on CentOS 7

As we know recently CentOS 7 is released ,studded with many new features. On the part of exploring t...
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)