在ubuntu下,进入server目录运行 $ python uploader.zip,上传到服务器
然后更改proxy.ini,
最后将goagent加入系统启动菜单,在/etc/rc.local中exit 0之前添加 python xx/goagent/local/proxy.py
如果不想每次开机都设置代理,可以讲其写入环境变量 在~/.bashrc 添加
export http_proxy="http://localhost:8087"
export https_proxy="http://localhost:8087"
但是访问https的时候会提示证书错误,这时候需要安装证书:分三步进行:
将goagent提供的证书拷贝系统查找证书目录
设置所有用户有可读权限
打开图形界面,安装goagent证书
$ sudo cp path/to/goagent/local/CA.crt /usr/share/ca-certificates/github/goagent.crt
$ sudo chmod a+r /usr/share/ca-certificates/goagent.crt
$ sudo dpkg-reconfigure ca-certificates
有时此方法导入证书不成功,现在就是chrome浏览器访问外国被墙的网站时候出现 SSL ERROR ,用以下方式解决
$ apt-get install libnss3-tools
$ certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "goagent" -i /home/dn/google_appengine/goagent/local/CA.crt
设置使用git使用proxy代理
在 ~/.gitconfig中添加
[http]
proxy = http://127.0.0.1:8087
sslVerify = false
或者在shell中输入
$ git config --global http.proxy http://127.0.0.1:8087
$ git config --global http.sslVerify false
效果一样。
Ubuntu 15.04配置GoAgent:http://www.linuxdiyf.com/linux/12228.html
Ubuntu 10.10配置GoAgent:http://www.linuxdiyf.com/linux/3954.html
在Linux系统中部署Goagent:http://www.linuxdiyf.com/linux/3685.html
Ubuntu下编写goAgent服务:http://www.linuxdiyf.com/linux/2218.html
Ubuntu下GoAgent访问Youtube,Google相关站点SSL错误解决:http://www.linuxdiyf.com/linux/1666.html