yuandianliws

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

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

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

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

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

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

#export http_proxy=debian:123456@proxy.debian.org:8080
 #export ftp_proxy=debian:123456@proxy.debian.org:8080
 #export RSYNC_PROXY=debian:123456@proxy.debian.org:8080

如果没有 用户名和密码,就直接写,如:export http_proxy=“proxy.debian.org:8080”就可以了。

 

可以把上面的环境变量写道/etc/profile里面,就可以随着机器的启动读入该环境变量了。

作者:yuandianlws 发表于2012-4-26 15:00:51 原文链接
阅读:864 评论:0 查看评论

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2021-06-10
  • 2021-11-30
  • 2021-11-20
  • 2022-01-10
猜你喜欢
  • 2022-02-07
  • 2021-11-20
  • 2021-07-18
  • 2022-02-07
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案