Skip to content

Instantly share code, notes, and snippets.

@zaki-lknr
Last active September 3, 2020 04:58
Show Gist options
  • Save zaki-lknr/effb38e023be8982106a9769f2e43e0f to your computer and use it in GitHub Desktop.
Save zaki-lknr/effb38e023be8982106a9769f2e43e0f to your computer and use it in GitHub Desktop.
Proxy設定

curl

-x | --proxyを使う

$ curl --proxy http://proxy.example.org:8080 http://www.example.com

pip

$ pip --proxy=http://proxy.example.org:8080 install ansible

rpm

$ sudo rpm --httpproxy proxy.example.org --httpport 8080 -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum

/etc/yum.confにグローバル設定を行えるが、no_proxyはないっぽい。
リポジトリによってproxyあり/なしがある場合は、/etc/yum.repo.d/hogehoge.repo毎に設定するのがよさげ

記述内容は

proxy=http://proxy.example.org:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment