Linux学习篇之---centos7中的ifconfig
来源:互联网 发布:mysql union all 去重 编辑:程序博客网 时间:2024/06/06 04:40
centos7中的ifconfig
今天最小化安装centos7,安装完毕,想要查看一下网络配置:
ifconfig命令后显示
-bash: ifconfig: command not found解决方案:确定ifconfig是否安装
首先查看/sbin/ifconfig 是否存在
1、若存在,则查看环境变量设置:echo $PATH如果环境变量中没有包含ifconfig命令所在的路径:
1)临时修改环境变量:export PATH = $PATH:/sbin关闭shell则环境变量的设置消失。
2)永久更改环境变量:
打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin,保存并重启。
或者在/etc/profile.d/目录下,新建一个ifconfig.sh脚本文件,文件内容为:export PATH=$PATH:/sbin保存并重启。2、若不存在:yum upgradeyum install net-tools
0 0
- Linux学习篇之---centos7中的ifconfig
- linux命令学习之(ifconfig)
- linux学习教程(一)(安装篇)centos7没有安装ifconfig命令的解决方法
- linux中的ifconfig
- linux之ifconfig命令
- linux函数之ifconfig
- linux命令之ifconfig
- linux 命令之 ifconfig
- Linux之ifconfig命令
- linux命令之 ifconfig
- linux 命令之 ifconfig
- linux命令之ifconfig
- linux命令之ifconfig
- Linux命令之ifconfig
- Centos7 ifconfig
- Linux学习之CentOS7.0
- 菜鸟的Linux学习笔记之命令ifconfig
- linux ifconfig 命令的学习
- IOS开发系列--IOS程序开发概览
- pushViewController/presentModalViewController/addSubView区别及使用方法
- Code Review最佳实践
- JetBrain WebStorm 注册码
- IOS开发系列--C语言之构造类型
- Linux学习篇之---centos7中的ifconfig
- (15.1.5.2)当抗日神剧遇上轻小说(我已笑抽)
- Qt4.8.5编译qvfb出现undefined reference to `png_create_write_struct'问题解决办法
- IOS开发系列--C语言之存储方式和作用域
- struts2拦截器实现登录限制
- Windows下安装并设置Redis
- Windows Embedded compact 2013(wince 8.0) 在Omap4平台的编译
- 第十一周 项目2 - 职员有薪水了(1)
- Swift语法之 ---- ?和!区别