google cloud使用总结

  • 申请vm实例
    http://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的配置文件中的端口一致,否则无法访问。比如我的防火墙配置为:
      google cloud使用总结_第1张图片
      那么就只有端口7000可以供外界访问,jupyter的配置文件中应相应改为:
      google cloud使用总结_第2张图片
  • 文中介绍有个选择建议选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)

你可能感兴趣的:(服务器)