[PYTHON] Linux, Windows proxy settings

If you notice it, add it.

Global settings

For Linux, set it in the HTTP_PROXY environment variable. If there is no inconvenience, set it with .bashrc and the rest is easy. Windows is set in Internet Options.

$ export HTTP_PROXY=http://proxyserver:8080

Windows Update This is not limited to Windows Update, but when HTTP communication using WinHTTP occurs.

rem Load proxy settings from IE
> netsh winhttp import proxy source=ie
rem Set by handwriting
> netsh winhttp set proxy proxy-server="http://proxyserver:8080" bypass-list="http://example.com;local"



# Proxy Setting



$ rpm -ivh --httpproxy http://proxyserver --httpport 8080 ~~



#Fill in without commenting out
http_proxy = http://proxyserver:8080
https_proxy = http://proxyserver:8080



proxy-user = "user:password"
proxy = "http://proxyserver:8080"

Or $ curl -U user: password -x http: // proxyserver: 8080 -L targeturl


It seems to read the HTTP_PROXY environment variable, but if you want to set it for Git:

$ git config --global http.proxy http://proxyserver:8080


Read the HTTP_PROXY environment variable, but you can also set it with ~ / .gemrc.


http_proxy: http://proxyserver:8080

It can also be specified as an option when gem install.

$ gem install foo -r -p http://proxyserver:8080


$  pip install foo [email protected]:port


$ npm config set proxy http://proxyserver:8080
$ npm config set https-proxy https://proxyserver:8080


When doing go get. HTTP_PROXY is referenced.

Recommended Posts

Linux, Windows proxy settings
[Linux] Proxy application
[Linux] DNS settings
[Linux] [Initial Settings] System Settings
Windows: JupyterLab settings memorandum
Linux (WSL) on Windows
[Linux] su, sudo settings
Proxy settings for urllib.request
[Windows] RDP to Windows via Linux
[Linux] [Initial Settings] Getting Started
Anaconda 4.4.0 Initial Settings for Windows
[Linux] [Initial Settings] Install & Uninstall
Linux on Windows -1-: debian introduction
[Linux] [Initial Settings] [Flutter] Summary
[Linux] [Initial Settings] Backup & Recovery
Summary of Proxy connection settings
Use Linux on Windows 10 (WSL2)
Differences between Windows and Linux directories
[Linux] [Initial Settings] Table of Contents
Pip install (Windows) under Proxy environment
(Windows10) Install Linux environment and gnuplot.
WSL2 ~ Linux on Windows ~ (Part 1: Introduction)
Various Anaconda settings in Windows 10 environment
Create a Linux environment on Windows 10
Proxy settings for apt-get are lowercase! !! !! !! !!
Linux ssh port forwarding (tunnel) settings
[Windows] Transfer event logs to Linux
[Linux, Windows] Time synchronization setting / confirmation
pykintone on Windows Subsystem for Linux
[UE4] Build DedicatedServer on Windows and Linux
Windows Subsystem for Linux is not displayed
docker and PyCharm under proxy on windows
Install wsl2 and master linux on windows
Windows → linux Tips for bringing in data
Settings when adding an HDD in Linux
WSL2 (Windows Subsystem for Linux) installation procedure
How to install Windows Subsystem For Linux
Create a Linux virtual machine on Windows