首页 > 系统服务 > 详细

Linux终端使用代理服务器

时间:2016-11-29 13:39:48      阅读:193      评论:0      收藏:0      [点我收藏+]

1、YUM添加代理服务器:

[root@localhost /]# vim /etc/yum.conf

  添加如下项目:

  proxy=http://172.16.1.188:8888/

2、WGET添加代理服务器:

[root@localhost /]# vim /etc/wgetrc

  添加如下项目:

  https_proxy = http://172.16.1.188:8888/
  http_proxy = http://172.16.1.188:8888/
  ftp_proxy = http://172.16.1.188:8888/

3、添加全局代理:

[root@localhost /]# export http_proxy=http://172.16.1.188:8888
[root@localhost /]# export http_proxy=http://172.16.1.188:8888

4、取消全局代理:

[root@localhost /]# unset http_proxy
[root@localhost /]# unset https_proxy

 

[THE END]

 

Linux终端使用代理服务器

原文:http://www.cnblogs.com/configure/p/6112900.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!