linux下终端使用代理

来源:互联网 发布:sql 2012 创建触发器 编辑:程序博客网 时间:2024/05/18 03:23

很长时间都不知道在Linux终端下代理是怎么设置,今天突然发现,貌似设置四个环境变量就行了,"HTTP_PROXY"、"http_proxy"和"FTP_PROXY"、"ftp_proxy",在~/.bash_profile中添加以下几行:

CODE:export HTTP_PROXY=http://username:password@proxy.server:8080
export http_proxy=http://username:password@proxy.server:8080
export FTP_PROXY=http://username:password@proxy.server:8080
export ftp_proxy=http://username:password@proxy.server:8080

原创粉丝点击