CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决


在VMWare上安装好centos后,使用yum安装nodejs报错:can not resolve host 'mirritlist.centos.org',

百度上很多都说在/etc/resolv.conf文件末尾添加nameserver 8.8.8.8 nameserver 8.8.4.4 serchdomain localdomain,然并卵。

其实只要重启一下eth0网络适配器就可以了,它会自动连接网络的。

ifdown eth0

ifup eth0


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM