近期对Google Code访问极不稳定,
而我大部分工作代码都存储在其中,
经常在迁出项目的时候遇到一下情况
- 连接重置
- Unknown SSL protocol error in connection to code.google.com:44
解决方法:用goagent代理上网
以下操作适用操作系统:Mac OS Lion 10.7.4
- 下载GoAgent git clone git clone git://github.com/phus/goagent.git
- 登录http://appengine.google.com,创建Application,并记下appid
- 设置goagent/local/proxy.ini 将appid = goagent 改成 appid = 你记下的appid
- 进入goagent/server目录,执行 python uploader.zip,并根据提示填入相应选项
- 设置随机启动 进入goagent/local/,将addto-startup.py内的os.path.dirname(__file__)换成os.getcwd(), 执行 python addto-startup.py
- sudo chown root:wheel /System/Library/LaunchDaemons/org.goagent.macos.plist,重启
如果遇到https网站无法响应,或者提示证书已过期,则需要导入goagent/local目录下的证书
chrome还要清空缓存和重启浏览器
官方文档 https://code.google.com/p/goagent/