码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7执行ifconfig Command not found 未找到命令

时间:2015-04-02 15:14:46      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

问题:刚学linux刚按照网络上安装的centos7装完之后登陆成功输入ifconfig,傻眼了[root@bogon~]# ifconfig  -bash: ifconfig: 未找到命令

解决方法:

这可是新安装的系统,怎么会没找到熟悉ifconfig命令呢?网上搜一下,一大堆人都在说是环境变量问题,但我确信我的/etc/profile设置是对的,于是终于找到一篇文章说是安装下net-tools就好

[root@bogon~]# yum install net-tools

等待系统下载一些包

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


中间会有一些提示。直接输入y按回车即可;

等待系统回到[root@bogon~]#状态时候;此时输入ipconfig即可查看ip地址;然后使用putty连接完全没问题;


CentOS7执行ifconfig Command not found 未找到命令

标签:

原文地址:http://blog.csdn.net/u011431550/article/details/44831087

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!