Edit your /etc/bash.bashrc file as root.
Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/
也可以直接再terminal中执行export语句;
或者:
修改配置文件:
/etc/apt/apt.conf
添加内容:
Acquire::http::proxy "http://server:port/";
Acquire::ftp::proxy "ftp://server:port/";
Acquire::https::proxy "https://server:port/";
本文指导用户如何在Linux系统中编辑bash.bashrc文件,设置HTTP和FTP代理,包括终端直接执行export语句的方法。同时,提供修改配置文件/etc/apt/apt.conf的方法来配置代理。
3万+

被折叠的 条评论
为什么被折叠?



