采用google appspot搭建个人代理服务器教程续集
原来已经写过用google appspot搭建一个私人代理服务器(http://www.paoto.com/2009/07/19/用google-appspot搭建一个私人代理服务器/),但是由于Google公司的更新,现在已经提供了Gui界面.所以搭建过程有些许变动…下面开始..
1.我们需要注册一个Google App Engine用户(注册步骤见http://www.paoto.com/2009/07/19/用google-appspot搭建一个私人代理服务器/)
2.下载AppEngine的SDK和安装.打开https://code.google.com/appengine/downloads.html 下载“Google App Engine SDK for Python”,安装它你还需要Python2.5以上的环境,没装过的在Python.org下载一下.我装了一个Python 2.6.5 final.先安装Python然后安装“Google App Engine SDK for Python”,安装完成之后打开桌面上的”Google App Engine Launcher”,选择菜单栏”File”下的”Create New Application”

然后会弹出一对话框.在”Application Name”下填写你在”https://appengine.google.com/“下创建的”Application Title”

在”Parent Directory”这个是目录,点击后面的”Browse”然后选择到Google_AppEngine目录..单击Create创建.

3.下载mirrorrr程序.到http://www.vdisk.cn/down/index/3603083A7701下载程序,下载之后把文件解压到Google_AppEngine目录下的”Application Name”(上面第二步创建的,我这里是gpaoto)文件夹下
.
4.设置mirrorrr程序。再次打开Google App Engine Launcher,选中项目名称,单击工具栏的Edit,把第一行的“application: xxx”改为“application: Application Name(上面第二步创建的,我这里是gpaoto)”,保存
。
5.本机预览代理服务器.现在可以在本机提前对代理服务器进行预览,选中项目,单击工具栏的”Run”.然后等”Browse”点亮,单击”Browse”即可本机预览代理服务器,以确定代理服务器是否架设成功.
6.上传.选中项目.单击工具栏里面的”Deploy”输入Google账户和密码,稍等就可以了…然后访问你的代理服务器试试…这个是属于你私人所有的哦..不过建议大家访问时采用https进行访问.
演示:https://gpaoto.appspot.com/
有什么问题请提出.能解决的一定帮大家解决…
——————————————————————————————————————
本文版权所有 指尖网(www.paoto.com) 如需转摘请注明并连接到出处..
社会漫漫,众多奸诈人面
回复
学习了!谢谢分享
回复
Your app was updated, but there was an error updating your indexes. Please retry later with appcfg.py update_indexes.
2010-08-19 11:55:24 (Process exited with code 0)
这是什么意思啊?我的应该是架设好了 后来我deploy登录就提示说更新
回复
指尖 Reply:
八月 19th, 2010 at 4:15 下午
根据提示说你的程序已经更新,但是怎么还出现了错误呢?你可更改一下app.yaml里面的version: XX这个XX看能不能解决您的问题。还有就是你更新一下的Google App Engine 的SDK。。。看看能不能解决您的问题。
回复
学习 了
回复
我要造一架飞机,直接飞越天朝的城墙!
回复
指尖 Reply:
八月 19th, 2010 at 4:16 下午
小心后面有导弹哦。。。。
回复
咔咕是一款超方便的个性图片、个性铃音生成器。
有兴趣的朋友欢迎回访。
回复
非常不错~支持一个~
回复
一起翻墙去,呵呵!
回复
指尖 Reply:
六月 30th, 2010 at 11:16 下午
小心下面有河蟹哦…别墙没有翻过去到被河蟹了
回复
有了代理,翻墙就方便 了
回复
指尖 Reply:
六月 30th, 2010 at 11:14 下午
是呀,墙外的世界真精彩..不过你的名字也太酷了…做爱,做的事.
回复
测试了效果很好,欢迎大家去我的小站做客 扣扣网:www.qqfat.com
回复
指尖 Reply:
六月 30th, 2010 at 12:11 上午
汗,这是赤裸裸的呀…
回复
你好,谢谢你的无私奉献。我在操作到第四步时,问我是否要替换文件,我选择了全部替换。之后在第五步,我选择项目并按“run”后,在项目前面出现了黄颜色的感叹号。到第5步等browse点亮后,点击发现提示
no selected projicts are running so we have nothingto Browse.
之后等到第6步输入gmail邮箱后发现:2010-06-10 10:43:17 Running command: “['C:\\Python31\\pythonw.exe', 'C:\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=honqigong@126.com', '--passin', 'update', 'C:\\Google\\google_appengine\\dbxdeh']”
Traceback (most recent call last):
File “C:\Google\google_appengine\appcfg.py”, line 68, in
run_file(__file__, globals())
File “C:\Google\google_appengine\appcfg.py”, line 64, in run_file
execfile(script_path, globals_)
NameError: global name ‘execfile’ is not defined
2010-06-10 10:43:18 (Process exited with code 1)
请问这是怎么回事?
回复
你好,首先感谢你的无私分享。我按照教程进行到第5步都没问题。但第6步却上传不成功。显示如下文字:
2010-05-14 17:59:56 Running command: “['F:\\Python26\\pythonw.exe', 'F:\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=wqqtgetjgckcg@gmail.com', '--passin', 'update', u'F:\\Google\\google_appengine\\fengzhuyin']”
F:\Google\google_appengine\appcfg.py:41: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
os.path.join(DIR_PATH, ‘lib’, ‘antlr3′),
F:\Google\google_appengine\google\appengine\tools\dev_appserver_login.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Application: fengzhuyin; version: secureable.
Server: appengine.google.com.
Scanning files on local disk.
Initiating update.
Could not guess mimetype for static/favicon.ico. Using application/octet-stream.
Cloning 8 static files.
Cloning 5 application files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Will check again in 2 seconds.
Checking if new version is ready to serve.
Will check again in 4 seconds.
Checking if new version is ready to serve.
Will check again in 8 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: — begin server output —
Creating a composite index failed: This index:
entity_type: “EntryPoint”
ancestor: false
Property {
name: “last_updated”
direction: 2
}
is not necessary, since single-property indices are built in. Please remove it from your index file and upgrade to the latest version of the SDK, if you haven’t already.
— end server output —
Your app was updated, but there was an error updating your indexes. Please retry later with appcfg.py update_indexes.
Password for wqqtgetjgckcg@gmail.com: 2010-05-14 18:00:30 (Process exited with code 0)
You can close this window now.
请问哪里不对。
回复
指尖 Reply:
五月 15th, 2010 at 3:13 下午
你问你第5步预览的时候本机可以使用么?第6步上传之后出现了这样的问题,请你先访问一下你现在的代理可以使用了没有.还有就是修改一下版本好.改为更高的上传一下呢.
回复
完全按照你说的步骤一步一步下来,到了第3步当释放mirror到我的文件夹ilovebsk
时里面已经有了三个文件,提示替换,我就替换了。到第5步等browse点亮后,点击发现提示
no selected projicts are running so we have nothingto Browse.
之后等到第6步输入gmail邮箱后发现
2010-05-05 14:27:26 Running command: “['D:\\Program Files\\Python\\pythonw.exe', 'D:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=ilovebsk@gmail.com', '--passin', 'update', u'D:\\Program Files\\Google\\google_appengine\\ilovebsk']”
Traceback (most recent call last):
File “D:\Program Files\Google\google_appengine\appcfg.py”, line 68, in
run_file(__file__, globals())
File “D:\Program Files\Google\google_appengine\appcfg.py”, line 64, in run_file
execfile(script_path, globals_)
NameError: global name ‘execfile’ is not defined
2010-05-05 14:27:26 (Process exited with code 1)
You can close this window now.
又是这个问题。真的不知道该怎么办了?设个代理真的这么艰辛吗?
回复
指尖 Reply:
五月 6th, 2010 at 6:28 下午
不可能呀,我在本机browse完全没有任何问题。。
他提示你是“没有选中任何项目,无法浏览”这是为什么呢?
在Gui下应该会有一个项目呀,你选中之后点“Run”之后再点“browse”应该就可以了。。我这里完全没有问题。
还有替换那里是需要替换的。
回复
续集都来了 支持 支持
回复
[...] 鉴于有一部分人说搭建中途出现了问题.所以进行了更新详见『采用google appspot搭建个人代理服务器教程续集』 第一步:注册一个Google AppEngine用户。用Google帐户登录后点“Creat an Application”,这里需要手机接收一下认证号,选“OtherCountry”,手机号填“+86你的11位手机号”,很快就能收到验证码,来到下一步。然后需要给帐户取一个名字,例如我起的就是gpaoto,以后就可以通过https://gpaoto.appspot.com/来访问。 [...]