配置yum网络代理
# 打开yum.conf配置文件
vim /etc/yum.conf
# 然后在里面加入一行
proxy=https://your_proxy:proxy_port
# 保存并退出
配置wget网络代理
# 打开wget配置文件
vim /etc/wgetrc
# 在里面加入两行配置
https_proxy=https://your_proxy:proxy_port
http_proxy=http://your_proxy:proxy_port
# 保存并退出
# 打开yum.conf配置文件
vim /etc/yum.conf
# 然后在里面加入一行
proxy=https://your_proxy:proxy_port
# 保存并退出
# 打开wget配置文件
vim /etc/wgetrc
# 在里面加入两行配置
https_proxy=https://your_proxy:proxy_port
http_proxy=http://your_proxy:proxy_port
# 保存并退出
本文标题:CentOS 7 配置yum和wget网络代理
本文链接:https://www.haomeiwen.com/subject/pwgvbqtx.html
网友评论