1、网页上网
网页上网设置代理很简单,在firefox浏览器下 Edit—>>Preferences—>>Advanced—>>Network
在Connection下点击Settings,里面的manual proxy configuration里设置IP和PORT即可,也可以使用软件proxifier进行配置,这里我使用的是软件。
2、yum代理设置
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
proxy=http://xxx.xxx:8080
3、wget代理设置
编辑文件为:/etc/wgetrc
添加下面两行:
http_proxy = http://xxx.xxx:8080
ftp_proxy = http://xxx.xxx:8080
4、系统环境代理设置
编辑文件为/etc/profile,如果只想给自己的账户设置,则编辑~/.bashrc即可
添加三行
export http_proxy="http://xxx.xxx:8080"
export https_proxy="http://xxx.xxx:8080"
export ftp_proxy=$http_proxy
然后source /etc/profile 或者source ~/.bashrc即可