1、YUM添加代理服务器:
[[email protected] /]# vim /etc/yum.conf
添加如下项目:
proxy=http://172.16.1.188:8888/
2、WGET添加代理服务器:
[[email protected] /]# vim /etc/wgetrc
添加如下项目:
https_proxy = http://172.16.1.188:8888/
http_proxy = http://172.16.1.188:8888/
ftp_proxy = http://172.16.1.188:8888/
3、添加全局代理:
[[email protected] /]# export http_proxy=http://172.16.1.188:8888 [[email protected] /]# export http_proxy=http://172.16.1.188:8888
4、取消全局代理:
[[email protected] /]# unset http_proxy [[email protected] /]# unset https_proxy
[THE END]
时间: 2024-11-05 18:50:56