现在的位置: 首页 > 综合 > 正文

linux下终端使用代理

2013年12月04日 ⁄ 综合 ⁄ 共 359字 ⁄ 字号 评论关闭

很长时间都不知道在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

抱歉!评论已关闭.