linux下部署goagent

下载以下两个软件

1.Google App Engine SDK for Python

https://developers.google.com/appengine/downloads?hl=zh-CN#Google_App_Engine_SDK_for_Python

2.goagent

https://code.google.com/p/goagent/

在此提供已经包含goagent的google appengine压缩包 http://pan.baidu.com/share/link?shareid=472887&uk=1493434283  (goagent 3.0.1)

下载后解压,将解压后的goagent文件夹放到google_appengine目录下,我的目录结构如下:
~/google_appengine/goagent-goagent-d488f2

准备好申请的Google application_ID与两步验证密码,如何申请请问google

下来是配置goagent

编辑~/google_appengine/goagent-goagent-d488f2/local/proxy.ini

填写正确的appid,在此建议将profile由默认的google_cn改为google_hk,编辑完成后保存退出

运行以下命令更新app

aquan@edge ~/google_appengine $ python appcfg.py update goagent-goagent-d4488f2/server/python/
07:03 PM Host: appengine.google.com
07:03 PM Application: wrchiublog; version: 1
07:03 PM 
Starting update of app: wrchiublog, version: 1
07:03 PM Getting current resource limits.
Email: wrchiu@126.com  //在此填写googleid
Password for wrchiu@126.com:    //此处填写两步验证密码,而不是帐号密码
07:04 PM Scanning files on local disk.
07:04 PM Cloning 1 static file.
07:04 PM Cloning 6 application files.
07:04 PM Uploading 1 files and blobs.
07:04 PM Uploaded 1 files and blobs
07:04 PM Compilation starting.
07:04 PM Compilation completed.
07:04 PM Starting deployment.
07:04 PM Checking if deployment succeeded.
07:04 PM Deployment successful.
07:04 PM Checking if updated app version is serving.
07:04 PM Completed update of app: wrchiublog, version: 1

更新完成后便可以使用以下命令开是appengine/goagent-goagent-d4488f2/local $ python proxy.py

注意:有时在更新app时会出现如下错误

aquan@edge ~/google_appengine $ python appcfg.py update goagent-goagent-d4488f2/server/python/
07:00 PM Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'your_appid' to attribute 'application':
Value 'your_appid' for application does not match expression
  '^(?:(?:[a-z/d/-]{1,100}/~)?(?:(?!/-)[a-z/d/-/.]{1,100}:)?(?!-)[a-z/d/-]{0,99}[a-z/d])$'
  in "goagent-goagent-d4488f2/server/python/app.yaml", line 1, column 14

可按照提示修改goagent-goagent-d4488f2/server/python/app.yaml中的application为正确的appid

至此linux下goagent部署完成,推荐使用chromium浏览器配合Proxy SwitchySharp插件,使用方法可以参考这里

以上操作在linuxmint 15下实现

via http://aotee.com/linux-and-goagent

linux下部署goagent

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/39768.html

(0)
上一篇 2021年8月4日
下一篇 2021年8月4日

相关推荐

发表回复

登录后才能评论