在linux中的用户变量中有关于代理环境设置,如ftp_proxy、 http_proxy、RSYNC_PROXY

我举个例子吧!假如我们要通过以下代理服务器的http代理方式接入网络,设置如下:
proxy.debian.org:8080

账号:debian
密码:123456

#export http_proxy="http://debian:123456@proxy.debian.org:8080"


这样设置就行了,但是没有存盘,重启计算机我们又要设置,所以要写入相关脚本,可参考以下网址。

http://hi.baidu.com/215317196/blog/item/b7161aed5f1f2e4879f05515.html


如果你要设置全部代理,那就可以这样写:

#export http_proxy="http://debian:123456@proxy.debian.org:8080"
#export ftp_proxy=$http_proxy
#export
RSYNC_PROXY=$http_proxy

socks代理设置:http://hi.baidu.com/215317196/blog/item/a91653fb68b5542f4e4aeafb.html

如果你能通过网关上网,那么上面的 设置基本不会启作用。