1. the following error occurs during gem installation.
Root @ ubuntu:/home/git/gitlab # sudo gem install bundler -- no-ri -- no-rdoc
ERROR: cocould 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)
Solution:
Sudo gem install -- http-proxy http: // proxy server: Port bundler -- no-ri -- no-rdoc
Cause: the Intranet uses proxy to access the Internet. You need to set the gem to use proxy.
2. You cannot use git to obtain the project. You need to configure a proxy for git.
Solution: the proxy server is an http proxy.
1. HTTP Protocol configuration (configuration ~ /. Gitconfig)
[Http]
Proxy = http: // 10.22.0.4: 8080
3. apt-get proxy settings
Sudo apt-get-c ~ /Apt_proxy.conf
The configuration file format is as follows:
Acquire: http: proxy "http: // your_proxy_adress1: Port Number /";
Acquire: ftp: proxy "ftp: // your_proxy_adress2: Port Number /";
Acquire: https: proxy "https: // your_proxy_adress3: Port Number /";
4. fetch Configuration