摘要
本文介绍了如何使用谷歌云服务器。
本文介绍了如何使用谷歌云服务器。
谷歌云服务器有很大的优点,一是免费使用一年(12个月),另一个优点是免费赠送300美元,这对于刚刚入手搞网站,又没有资金支持的朋友们是个不错的选择。
谷歌云服务器地址为:https://console.cloud.google.com/freetrial/signup/1?pli=1
ttp://cs231n.github.io/gce-tutorial/
根据cs231n这门课的tutorial,申请一个适合自己的vm实例。
远程访问google cloud上的jupyter
https://haroldsoh.com/2016/04/28/set-up-anaconda-ipython-tensorflow-julia-on-a-google-compute-engine-vm/#clientside
按照这个步骤配置,注意:
vm实例中的防火墙配置端口要和jupyter的配置文件中的端口一致,否则无法访问。比如我的防火墙配置为:
那么就只有端口7000可以供外界访问,jupyter的配置文件中应相应改为:
文中介绍有个选择建议选option B:using screen,因为这个可以Press CTRL-A, D to detach from the screen and take you back to the main command line。
文中有个命令错误,应为:
gcloud compute ssh –zone= \
–ssh-flag=”-D” –ssh-flag=”1080” –ssh-flag=”-N”
即把最后一个参数去掉。
最后一步启动浏览器时,直接在windows cmd命令中输入即可。
如果遇到jupyter kernel和当前环境python版本不一样,建议重新安装jupyter(conda install jupyter)