LINUX----ifconfig----command not

2020-06-20  本文已影响0人  JuMinggniMuJ

测试环境:centos7

在安装完虚拟机之后,运行命令ifconfig提示command not found,这是因为一个新的虚拟机没有安装net-tools。然而安装net-tools却仍然报错,解决办法:

1.编辑网卡文件:
cd /etc/sysconfig/network-scripts/
vi ifcfg-enp0s3        #把ONBOOT=no,改为yes,并保存
2.重启网络:
service network restart
3.安装net-tools:
yum install net-tools
4.运行ifconfig:
命令截图
5.至此问题解决!
上一篇 下一篇

猜你喜欢

热点阅读