CentOS 中设置系统级代理
系统全局代理
如果需要为某个用户设置一个系统级的代理,可以在
vim ~/.bash_profile
最后加入:
export http_proxy="http://username:password@proxy_ip:port"
export https_proxy="https://username:password@proxy_ip:port"
使配置文件生效:
source /etc/profile
上面的设置只对某个用户生效.
如果要对所有系统用户生效:
vim /etc/profile
最后加入:
export http_proxy="