标签:
按照官网地址的方法安装mongodb(http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/?_ga=1.114213959.1382120356.1433758092)
使用yum方式,结果报错:
[Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘repo.mongodb.org‘"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mongodb-org-3.0. Please verify its path and try again
百度结果是需要设置dns服务器,命令行执行代码:echo "nameserver 8.8.8.8" > /etc/resolv.conf
继续yum,成功了
标签:
原文地址:http://www.cnblogs.com/benlightning/p/4563574.html