1、修改/etc/yum.conf文件

增加一行:

proxy=http://xxx.xxx.xxx:xxxx    前面为代理地址,后面为端口

2、代理的用户名和密码

如果你的代理需要用户名和密码,则再增加如下内容:

proxy_username=用户名

proxy_password=密码

最后,保存退出,即可

以上操作需要 在 root 或管理员权限下

相关文章:

  • 2021-06-26
  • 2021-04-20
  • 2022-12-23
  • 2021-12-17
  • 2021-08-10
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-03-04
  • 2021-07-16
相关资源
相似解决方案