Published: 08 Apr 2018 › Updated: 08 Apr 2018
在终端中为git、curl等设置代理
在linux中使用了ssr之后,会发现git和curl等无法完成请求,最好的方法还是刷极路由固件,完成彻彻底底的翻墙,或者就直接给git和curl设置代理,方法如下:
给git设置代理:
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消git代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
使curl走代理
sudo vim ~/.curlrc
然后加入一行:
socks5 = "127.0.0.1:1080"
Leave 在终端中为git、curl等设置代理 to:
Read more #linux posts
Best Posts From a186r
We have not curated any of a186r's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From a186r
- homebrew代理设置
- 给git设置代理
- libidn11: /usr/lib/libidn.so.11 exists in filesystem (owned by fcitx-sogoupinyin)
- linux环境下制作镜像[转]
- ubuntu下的加密压缩与解压
- 在ubuntu上安装zsh
- ubuntu 16.04 LTS卸载不常用的软件
- gradle下载超时的问题
- ubuntu下wps中文字体缺失问题
- ubuntu系统备份和恢复(2)
- ubuntu备份和恢复完整系统
- 在终端使用代理
- solidity中的函数修饰符
- 在终端中为git、curl等设置代理
- linux处理tar.xz文件
- linux中使用代理安装dropbox
- Solidity中固定大小字节数组转string
- EOS测试链搭建
- 给linux桌面设置一张实时的地球照片
- git相关配置