CentOS下ifconfig出现“command not found”
时间:
2018-03-18 16:10:51
阅读:
202
评论:
收藏:
0
[点我收藏+]
ifconfig命令提示“command not found”,推测是安装的时候选择了最小安装造成的。
- 查看/sbin目录下是否存在ifconfig:
ls /sbin
发现不存在ifconfig
- 修改网卡配置:
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
onboot=no改为onboot=yes
- 安装net-tools package:
yum install net-tools
- 安装完之后,发现ifconfig命令能够执行了。
CentOS下ifconfig出现“command not found”
原文:http://blog.51cto.com/heyww/2088157