CentOS7在虚拟机中出现could not reslove host问题的解决方法

 剑鱼论坛 发表于 2021年01月02日 Linux  67
剑鱼论坛
LV 8 研究生
最后在线:2年前
加入时间:5年前
主帖:143  跟帖:100

我们在虚拟机里面安装CentOS7后,网络不能连接,出现“could not reslove host”提示,该怎么处理?

下面就来介绍如何处理“could not reslove host”错误提示

我们输入以下命令:

vi /etc/sysconfig/network-scripts/ifcfg-ens33

然后编辑“ifcfg-ens33”文件,把其中的ONBOOT属性变更为“yes”,如下图:

修改以后保存,然后再使用“reboot”命令,重启系统就可以了。


论坛主帖
288
论坛跟帖
316
在线访客
0
今日主帖
0
今日跟帖
0
今日注册
0
231
http://jianyuluntan.com/gentie.html
http://jianyuluntan.com/postzan.html
http://jianyuluntan.com/postcai.html
http://jianyuluntan.com/postshoucang.html
http://jianyuluntan.com/gentiezan.html
http://jianyuluntan.com/gentiecai.html
http://jianyuluntan.com/huifu.html
http://jianyuluntan.com/xiugai.html
http://jianyuluntan.com/shanchugentie.html
1
cmVsZWFzZV8w
0
© 2019 - 2024 剑鱼论坛 版权所有
Powered by JianYuLunTan
剑鱼论坛 976666861
http://jianyuluntan.com/feedback.html
http://jianyuluntan.com/qiandao.html
http://jianyuluntan.com/denglu.html
0
http://jianyuluntan.com/adenglu.html
0
剑鱼论坛