linux有关ifconfig的解决方法
来源:互联网 发布:linux 禁止ip访问 编辑:程序博客网 时间:2024/06/06 15:50
ifconfig: command not found(CentOS专版,其他的可以参考)
ifconfig: command not found
查看path配置(echo相当于c中的printf,C#中的Console.WriteLine)
echo
$PATH
解决方案1:先看看是不是root用户,如果不是就 su 切换到root用户
su
解决方案2:(如果没看见 /sbin)【我们这显然不是这个问题】
这个一般都是因为配置没弄好,永久解决:
打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin
解决方案3:(CentOS后来换指令了,看看我们是不是【ipconfig==>ip】)
在 /(根目录)里面查找 name(名字)是 ifconfig 的东东
说明ipconfig真的换了,淡定
看看信息
ip addr
发现木有(看 2:eth0 没有ipv4)
跳转到 /etc/sysconfig/network-scripts 目录
cd
/etc/sysconfig/network-scripts
用vi打开 ifcfg-eth0 (你的可能是eth1,或者其他,不是每个电脑都是这个的)【如果想改成这个可以参考:http://jingyan.baidu.com/article/7f41ecec1b022e593d095c1e.html】
按 i 进去编辑模式 ,修改箭头处,然后按 esc 退回命令模式,输入:wq 并回车
重启一下
reboot
用root用户登陆后 输入
ip addr
成功!!
解决方案4:(网络)
http://blog.sina.com.cn/s/blog_946cb2b70100wx2j.html
yum install setuptool安装setup,不过安装后使用运行setup只有Authentication configuration可用。
如想配置IP,安装system-config-network-tui即可。
yum install system-config-firewall-tui安装图形化Firewall配置工具。
yum list system-config* 全部安装。
参考:http://blog.csdn.net/johnstrive/article/details/5625121
- linux有关ifconfig的解决方法
- linux中ifconfig没有ip的解决方法
- LINUX命令ifconfig不能显示ip的解决方法
- ifconfig无法使用的解决方法
- linux 的ifconfig命令
- 【linux】linux中ifconfig后不显示eth0网卡的解决方法
- Linux中ifconfig的应用
- linux ifconfig 命令的学习
- Linux下的ifconfig详解
- linux学习教程(一)(安装篇)centos7没有安装ifconfig命令的解决方法
- ifconfig 中没有显示IP的解决方法
- ifconfig只能检测到L0的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- Redhat7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- zookeeper-01-基本概念.md
- SQLite DBHelper 跨版本更新数据库
- 【Android 基础】Animation 动画介绍和实现
- Apache负载均衡设置的三大策略原则
- 深入理解Linux中内存管理
- linux有关ifconfig的解决方法
- 树莓派驱动6轴传感器MPU6500与SPI初体验(二)
- SQL Server 由于系统缓冲区空间不足或队列已满,不能执行套接字上的操作
- 前后端分离势在必行!
- 127. Word Ladder
- 二叉树的遍历代码(先序遍历,中序遍历,后序遍历)
- C/C++面试解析
- robotframework使用之“Firefox启动不起来,或者是启动了,页面是空白的,URL地址栏是空的”
- zookeeper-02-环境搭建