首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux上终端使用代理

2013-01-28 
linux下终端使用代理很长时间都不知道在Linux终端下代理是怎么设置,今天突然发现,貌设置四个环境变量就行

linux下终端使用代理

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

热点排行