标签归档:GoAgent

Git使用goagent代理

1、在/usr/bin/gitproxy文件,并编辑

#!/bin/bash
https_proxy="127.0.0.1:8087"
export https_proxy 
http_proxy="127.0.0.1:8087"
export http_proxy
git config --global http.sslVerify false

2、可执行权限

# chmod a+x /usr/bin/gitproxy

3、在当前用户下执行

$ . /usr/bin/gitproxy

 

 

 

CentOS 6.5 安装GoAgent 3.1.5 出现的几个问题

1、提示WARNING – [Mar 19 16:59:00] Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead.

该问题是缺少pycrypto包所致,可以在root帐号下安装pycrypto

# yum install pycrypto

2、提示WARNING – [Mar 19 17:37:50] python-openssl not found, please install it!

该问题是缺少python-openssl包所致,可以在root帐号下安装pyOpenSSL

# yum install pyOpenSSL

3、出现错误TypeError: __init__() got an unexpected keyword argument ‘buffering’

该问题是httplib.HTTPResponse函数参数问题,可以在proxy.py文件中,找到对应行(我的是1269行),将 response = httplib.HTTPResponse(sock, buffering=True) 改为

response = httplib.HTTPResponse(sock)

4、出现错误SSLError: [Errno 1] _ssl.c:1390: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca

该问题可以通过将local/CA.crt证书导入到认证机构中解决