zoukankan      html  css  js  c++  java
  • centos设置上网代理

    假设我们要设置代理为 IP:PORT

    1、网页上网
    网页上网设置代理很简单,在firefox浏览器下 Edit-->>Preferences-->>Advanced-->>Network

    在Connection下点击Settings,里面的manual proxy configuration里设置IP和PORT即可

    2、yum代理设置
    编辑文件为:/etc/yum.conf

    在里面添加这一行:proxy=IP:PORT

    这里的IP 为你要设置的IP ,PORT 是你要设置的端口

    3、wget代理设置
    编辑文件为:/etc/wgetrc    
    添加下面两行:
    http_proxy = IP:PORT 
    ftp_proxy = IP:PORT

    4、系统环境代理设置
    编辑文件为/etc/profile,如果只想给自己的账户设置,则编辑~/.bashrc即可

    添加三行:

    # add proxy for network
    export http_proxy="http://child-prc.intel.com:913"
    export https_proxy="http://child-prc.intel.com:913"
    export ftp_proxy=$http_proxy

    然后source /etc/profile 或者source ~/.bashrc即可
    ---------------------

    原文链接:https://blog.csdn.net/runningtortoises/article/details/51555188

  • 相关阅读:
    第三天-基本数据类型 int bool str
    第二天-while循环 格式化输出 运算符 编码
    第一天-python基础
    Mysql
    Mysql
    Mysql
    Mysql
    Mysql
    Mysql
    Php
  • 原文地址:https://www.cnblogs.com/GodZhe/p/11322067.html
Copyright © 2011-2022 走看看