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-AT-proxyserver-DOT-net:port/
export ftp_proxy=http://username:password@proxyserver-DOT-netport/
apt-get behind a proxy server
最新推荐文章于 2025-05-02 19:19:09 发布
本文介绍如何在bash环境中配置HTTP和FTP代理。通过编辑/etc/bash.bashrc文件并添加特定的代理设置,可以为整个系统设置统一的代理服务器。
6842

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



