linux couldnt resolve host mirrors.aliyun.com解决方法

原因:
 dns服务器没有配置正确

解决办法:
1、打开文件/etc/resolv.conf在其中添加:
 nameserver 8.8.8.8
 nameserver 8.8.4.4
 search localdomain

2、然后重启网卡:使用命令: service network restart

posted @ 2018-01-26 18:25  do+better  阅读(1781)  评论(0编辑  收藏  举报