zoukankan      html  css  js  c++  java
  • Gitserver几家互联网代理安装方法未能解决。

    1、gem安装下面的错误

    root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
    ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
              Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz)

    解决的方法:

    sudo gem install --http-proxy http://代理server:port bundler --no-ri --no-rdoc

    问题原因:内网是使用代理上网。须要设置gem使用代理


    2、无法使用git获取项目,须要为git配置代理

    解决的方法:代理server为 http 代理

    1.HTTP 协议配置(配置 ~/.gitconfig)

    [http]
    proxy = http://10.22.0.4:8080

    3、apt-get 代理设置 

    sudo apt-get -c ~/apt_proxy.conf 
    配置文件的格式,例如以下: 
    Acquire::http::proxy "http://your_proxy_adress1:port号/"; 
    Acquire::ftp::proxy "ftp://your_proxy_adress2:port号码/"; 
    Acquire::https::proxy "https://your_proxy_adress3:port号码/"; 


    4、fetch组态





  • 相关阅读:
    spring mvc 参数校验
    spring-boot 配置jsp
    java 多线程之取消与关闭
    spring transaction 初识
    java 读取环境变量和系统变量的方法
    每天一命令 git checkout
    每天一命令 git stash
    每天一命令 git reset
    log4j2配置详解
    专业名词及解释记录
  • 原文地址:https://www.cnblogs.com/zfyouxi/p/4583008.html
Copyright © 2011-2022 走看看