Linux終端使用代理服務器


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 https_proxy=http://172.16.1.188:8888

4、取消全局代理:

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

 

[THE END]

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM