在Debian版Linux中轻松配置常用代理设置指南
最编程
2024-02-20 18:41:12
...
# 设置代理;
echo 'export https_proxy="http://127.0.0.1:7890"' >> ~/.bashrc
echo 'export http_proxy=$https_proxy' >> ~/.bashrc
echo 'export ftp_proxy=$https_proxy' >> ~/.bashrc
echo 'export proxy=$https_proxy' >> ~/.bashrc
echo 'export HTTPS_PROXY=$https_proxy' >> ~/.bashrc
echo 'export HTTP_PROXY=$https_proxy' >> ~/.bashrc
echo 'export FTP_PROXY=$https_proxy' >> ~/.bashrc
echo 'export PROXY=$https_proxy' >> ~/.bashrc
# 取消代理;
vim ~/.bashrc # 编辑.bashrc文件删除或注释代理设置;