勉強部屋 > プロキシ
プロキシの設定方法まとめ
ブラウザ編
IE
インターネットオプション>接続>LANの設定
Chrome
設定>詳細設定を表示>プロキシ設定の変更
※ ChromeはIEの設定を参照するFireFox
ツール>オプション>詳細タブ>ネットワーク>接続設定
Edge
(Windowsの)設定>ネットワークとインターネット>プロキシ
※ EdgeはWindowsの設定を参照する
Linux編
環境変数
export http_proxy="http://PROXY_HOST:PROXY_PORT"
export https_proxy="http://PROXY_HOST:PROXY_PORT"~/.bashrcに書いておくとログイン時に自動で実行してくれる
apt
nano -w /etc/apt/apt.conf
Acquire::http::proxy "http://PROXY_HOST:PROXY_PORT/";apt-get
nano -w /etc/apt/apt.conf
Acquire::http::proxy "http://PROXY_HOST:PROXY_PORT/";bundle
export http_proxy=http://PROXY_HOST:PROXY_PORT
curl
curl -x PROXY_HOST:PROXY_PORT -L url
echo 'proxy = "http://PROXY_HOST:PROXY_PORT/"' >> ~/.curlrcgem
gem install *** -p http://PROXY_HOST:PROXY_PORT
git
git config --global http.proxy http://PROXY_HOST:PROXY_PORT
git config --global https.proxy http://PROXY_HOST:PROXY_PORTpip
pip install *** --proxy=http://PROXY_HOST:PROXY_PORT
rsync
export RSYNC_PROXY=PROXY:PORT; sudo visudo; Defaults env_keep += "RSYNC_PROXY"
svn
nano -w ~/.subversion/servers
[global]
http-proxy-exception = NO_PROXY_HOST
http-proxy-host = PROXY_HOST
http-proxy-port = PROXY_PORTwget
nano -w ~/etc/wgetrc
http_proxy=http://PROXY_HOST:PROXY_PORT/
https_proxy=http://PROXY_HOST:PROXY_PORT/
アプリ編
VirtualBox
ファイル>環境設定>プロキシ
VMware Player
Player>ファイル>Playerの環境設定>接続設定