欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CentOS中如何設置系統(tǒng)級代理?CentOS中設置系統(tǒng)級代理的方法

  發(fā)布時間:2016-12-20 11:58:55   作者:佚名   我要評論
很多朋友不知道CentOS中如何設置系統(tǒng)級代理?今天小編就為大家分享CentOS中設置系統(tǒng)級代理的方法,希望可以幫助到大家,有需要的朋友一起去看看吧

YUM代理設置

編輯/etc/yum.conf,在最后加入

# Proxy

proxy=http://username:password@proxy_ip:port/

也可以使用proxy_username和proxy_password來配置代理的用戶名和密碼

這樣的配置完成后,所有的用戶在使用yum時,都會使用代理,可以說是全局代理。

如果需要為單獨的用戶配置代理,可以在用戶的~/.bash_profile中設置。

Wget的代理設置

編輯/etc/wgetrc,在最后加入

# Proxy

http_proxy=http://username:password@proxy_ip:port/

ftp_proxy=http://username:password@proxy_ip:port/

系統(tǒng)全局代理

如果需要為某個用戶設置一個系統(tǒng)級的代理,可以在~/.bash_profile中設置:

http_proxy="http://username:password@proxy_ip:port"

export_http_proxy

上面的設置只對某個用戶生效,如果要對所有系統(tǒng)用戶生效,寫在/etc/profile中就可以了。

相關文章

最新評論