1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu18.04 proxy関連設定メモ

Last updated at Posted at 2019-12-24

Proxy関連の設定

/etc/environment.
http_proxy=http://proxy:port/
https_proxy=http://proxy:port/

pipができない場合

.pipフォルダとpip.confファイルを作成

~/.pip/pip.conf
[global]
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org

Docker関連

/etc/default/docker.
export http_proxy="http://proxy:port/"
export https_proxy="http://proxy:port/"

sudo service docker restart
docker info で確認

Zscaler関連の設定

Zscalerをコピー

sudo cp ZscalerRootCertificate.crt /usr/share/ca-certificates
/etc/ca-certificates.conf
ZscalerRootCertificate.crt

以下のコマンドを実行

sudo update-ca-certificates

CURLが使えなければ、下記を追加するのも一興

export CURL_CA_BUNDLE=/usr/share/ca-certificates/ZscalerRootCertificate.crt
export REQUESTS_CA_BUNDLE=/usr/share/ca-certificates/ZscalerRootCertificate.crt
export SSL_CERT_FILE=/usr/share/ca-certificates/ZscalerRootCertificate.crt
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?