1
3

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 5 years have passed since last update.

Proxyでいろいろ阻まれてしまう人用のメモ

Last updated at Posted at 2018-10-31

すでに色んな人の記事があるけれども忘れてググることが多いのでメモ

検証環境:Ubuntu18、CentOS7
シェル:Bash

【UNIX共通】

wget

/etc/wgetrc

https_proxy = http://username:password@your.proxy.address:proxy.port/
http_proxy = http://username:password@your.proxy.address:proxy.port/

curl

~/.curlrc

proxy-user = "username:password"
proxy = "http://your.proxy.address:proxy.port"

git

~/.gitconfig

[http]
proxy = http://username:password@your.proxy.address:proxy.port/

以下コマンドでもOK

$git config --global http://username:password@your.proxy.address:proxy.port/
$git config --global http://username:password@your.proxy.address:proxy.port/

【Ubuntu】

apt

/etc/apt/apt.conf

Acquire::http::proxy "http://username:password@your.proxy.address:proxy.port/";
Acquire::https::proxy "http://username:password@your.proxy.address:proxy.port/";

Docker上での設定

例としてCentOSのDockerFileの場合

FROM centos:7.2.1511
RUN echo proxy=http://username:password@your.proxy.address:proxy.port/ >> /etc/yum.conf 

参考にした記事

proxy環境下の設定(ubuntu 14.04)

1
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?