http://haohetao.iteye.com/blog/793777
vi /etc/profile.d/proxy.sh
加入以下内容
export HTTP_PROXY="http://username:password@192.168.1.1:808/"
export FTP_PROXY="http://username:password@192.168.1.1:808/"
export no_proxy=127.0.0.1,192.168.,localhost
use_proxy=on
保存(新建)退出
chmod +x /etc/profile.d/proxy.sh
用户名,密码没有可以省略
vi /etc/yum.conf
加入
proxy=http://username:password@192.168.1.1:808/
重启电脑就使用代理上网了
加入以下内容
export HTTP_PROXY="http://username:password@192.168.1.1:808/"
export FTP_PROXY="http://username:password@192.168.1.1:808/"
export no_proxy=127.0.0.1,192.168.,localhost
use_proxy=on
保存(新建)退出
chmod +x /etc/profile.d/proxy.sh
用户名,密码没有可以省略
vi /etc/yum.conf
加入
proxy=http://username:password@192.168.1.1:808/
重启电脑就使用代理上网了
本文介绍如何在Fedora系统中配置代理上网,包括编辑profile.sh文件设置HTTP和FTP代理,以及配置yum使用的代理服务器。
1599

被折叠的 条评论
为什么被折叠?



