zoukankan      html  css  js  c++  java
  • Linux 设置代理

    一、为系统设置代理
    编辑文件/etc/profile,增加如下两行

    export http_proxy=http://proxy.com:8080/
    export https_proxy=http://proxy.com:8080/
    1
    2
    二、为yum配置代理
    在/etc/yum.conf后面添加以下内容:
    如果代理不需要用户名密码认证:

    proxy=http://proxy.com:8080/
    1
    如果需要认证

    proxy=http://proxy.com:8080/
    proxy_username=代理服务器用户名
    proxy_password=代理服务器密码
    1
    2
    3
    三、为wget代理设置:
    编辑文件为:/etc/wgetrc
    添加下面两行:

    http_proxy=http://proxy.com:8080/
    https_proxy=http://proxy.com:8080/
    1
    2
    四、网页上网
    网页上网设置代理很简单,在firefox浏览器下 Edit–>>Preferences–>>Advanced–>>Network
    在Connection下点击Settings,里面的manual proxy configuration里设置IP和PORT即可
    ————————————————
    版权声明:本文为CSDN博主「Jim~LoveQ」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/jim_LoveQ/article/details/95313989

  • 相关阅读:
    设置WebSphere字符集参数
    防SQL注入
    改变radio/checkbox默认样式
    数据完整性约束错误
    Java项目多数据源配置
    No row with the given identifier exists:错误另解
    ICTCLAS20160405分词系统调试过程
    centos7 忘记root密码
    java之Junit
    javaweb之登录
  • 原文地址:https://www.cnblogs.com/waw/p/11690137.html
Copyright © 2011-2022 走看看