global proxy
in file /etc/profile
set1
2
3
4
5export proxy="http://user:pwd1@192.168.3.1:8848"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy="localhost, 127.0.0.1, ::1"
unset command1
2
3
4unset http_proxy
unset https_proxy
unset ftp_proxy
unset no_proxy
load variablessource /etc/profile
yum proxy
in file /etc/yum.conf
set
1 | proxy=http://192.168.3.1:8848 |
npm proxy
set command1
2npm config set proxy http://user:pwd@192.168.3.1:8848
npm confit set https-proxy http://user:pwd@192.168.3.1:8848
unset command1
2npm config delete proxy
npm config delete https-proxy
npm setting
https://segmentfault.com/a/1190000002589144
maven proxy
1 | <proxy> |
https://www.cnblogs.com/EasonJim/p/9826681.html
https://blog.csdn.net/yanzi1225627/article/details/80247758