赞
踩
vi /etc/profile
- #无用户名密码
- export http_proxy=http://proxy_ip:prot
- export https_proxy=https://proxy_ip:prot
-
- #有用户名密码
- export http_proxy=http://username:password@proxy_ip:prot
- export https_proxy=https://username:password@proxy_ip:port
source /etc/profile
- echo $http_proxy
- echo $https_proxy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。