오늘
I have troubled while using programs which use networks behinde proxy. So I summerized how to configure proxy.
I found some similar document like mine. but a little different.
nodejs & npm & ionic
- set NODE_TLS_REJECT=0
- SET PROXY=HTTP://000.00.00.00:00
- npm config set proxy http....
- npm config set https-proxy http://xxxx
git
git config --global http.proxy http://xxxxx
or .gitconfig
[http]
proxy = http://xxx.xxx.xxx:0000
curl
- export http_proxy=http://aaa.aa.aa.aa.:0000
- export https_proxy=http:/aaa.aa.aaa.aa:0000
- curl -x http://xx.xxx.
- curl --proxy http://sss.sss
java
- -Dhttp.proxyHost=xxx.xxx.xxx -Dhttp.proxyPort=0000
- -Dhttps.proxyHost=xxx.xxx.xxx -Dhttps.proxyPort=0000
- or using system proxy
- java -Djava.net.useSystemProxies=true
apt-get
- cd /etc/apt
- sudo vi apt.conf
- Acquire::http::proxy "http://xxx.xxx.xx:000"
python pip
pip install --proxy http://xxx.xxx:000 modulename
cert error :
pip --cert certfile.pem install moduleName
** using config
pip/pip.conf
[global]
cert=/aaa/aaaa/certfile.pe
** when ssl error is occurred.
(pip version: 8.0.2)
pypi.python.org is download server.
pip install module_name --trusted-host pypi.python.org
gradle
gradle.properties
systemProp.http.proxyHost=111.111.111.111
systemProp.http.proxyPort=111
systemProp.https.proxyHost=222.222.222.222
systemProp.https.proxyPort=111
댓글 없음:
댓글 쓰기