2021年12月3日星期五

git走代理

 由于总所周知的原因,编译有时候很慢,那么git如何走代理:

git config --global http.proxy 'socks5://127.0.0.1:1080'

git config --global https.proxy 'socks5://127.0.0.1:1080'

取消走代理:

git config --global --unset http.proxy

git config --global --unset https.proxy


查看代理:

git config --global --get http.proxy
git config --global --get https.proxy



没有评论:

发表评论

小型网站的ubuntu服务器如何提升连接数

 当服务器有多个api应用,或者网站的时候,会出现网页打不开。但是cpu、内存等都很空闲。这种情况,有可能是网站的文件数设置不正确。 查询服务器支持的TCP连接数: ulimit -n 默认是1024 需要增加方法: 编辑/etc/security/limits.conf * s...