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

CentOS如何設(shè)置各種代理上網(wǎng)?

  發(fā)布時間:2016-11-30 16:50:44   作者:佚名   我要評論
最近一些朋友說不知道CentOS如何設(shè)置各種代理上網(wǎng);下面小編就為大家?guī)鞢entOS設(shè)置各種代理上網(wǎng)的方法;有需要的朋友可以過來看看

假設(shè)我們要設(shè)置代理為 IP:PORT

1、網(wǎng)頁上網(wǎng)

網(wǎng)頁上網(wǎng)設(shè)置代理很簡單,在firefox瀏覽器下 Edit-->>Preferences-->>Advanced-->>Network

在Connection下點擊Settings,里面的manual proxy configuration里設(shè)置IP和PORT即可

 2、yum代理設(shè)置

編輯文件為:/etc/yum.conf 

在里面添加這一行:proxy=IP:PORT

這里的IP 為你要設(shè)置的IP ,PORT 是你要設(shè)置的端口

 3、wget代理設(shè)置

編輯文件為:/etc/wgetrc     
添加下面兩行:
http_proxy = IP:PORT  
ftp_proxy = IP:PORT

4、系統(tǒng)環(huán)境代理設(shè)置

編輯文件為/etc/profile,如果只想給自己的賬戶設(shè)置,則編輯~/.bashrc即可

添加三行:

# add proxy for network

export http_proxy=http://child-prc.intel.com:913

export https_proxy=http://child-prc.intel.com:913

export ftp_proxy=$http_proxy

然后source /etc/profile 或者source ~/.bashrc即可

相關(guān)文章

最新評論