Linux常用指令
设置系统代理
临时生效(当前终端):
export http_proxy="http://IP:端口"
export https_proxy="http://IP:端口"
永久生效(写入配置文件):
echo 'export http_proxy="http://IP:端口"' >> ~/.bashrc
echo 'export https_proxy="http://IP:端口"' >> ~/.bashrc
source ~/.bashrc
取消代理:
unset http_proxy https_proxy文章作者:捡便士的月亮
文章链接:http://onlyuan.cn/archives/linuxhuan-jing-she-zhi
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0 许可协议,转载请注明出处!
评论已关闭!