CentOS   发布时间:2022-05-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centos6.9终端设置代理访问外网络大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

本文永久地址:https://my.oschina.net/bysu/blog/1359109

由于公司网络需要用到代理,才能对外网进行访问。不设置外网进行yum访问,会报如下错误:

[subaoya@localhost ]$ sudo yum groupinstall "Development tools"
Loaded plugins: fastestmirror,refresh-packagekit,security
SetTing up Group Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: CAnnot retrieve repository Metadata (repomd.xml) for repository: base. Please verify its path and try again

yum proxy

    @H_502_17@文件目录
vim /etc/yum.conf
    @H_502_17@添加如下
proxy = http://[username:password@]yourproxy:8080/

http://www.cnblogs.com/zjoch/p/6509925.html

本文永久地址:https://my.oschina.net/bysu/blog/1359109

大佬总结

以上是大佬教程为你收集整理的centos6.9终端设置代理访问外网络全部内容,希望文章能够帮你解决centos6.9终端设置代理访问外网络所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: