无法从 Google Deep Learning VM 访问 Jupyter 实验室

Unable access Jupyter lab from Google Deep Learning VM

我在安装 Google 深度学习 VM 后尝试打开 Jupyter Lab。

我在浏览器的 SSH 终端中 运行 此代码:

export PROJECT_ID="name"
export ZONE="us-west1-b"
export INSTANCE_NAME="tensorflow-1-vm"
gcloud compute ssh --project $PROJECT_ID --zone $ZONE \
  $INSTANCE_NAME -- -L 8080:localhost:8080

我总是犯同样的错误,无法访问 http://localhost:8080/ :

bind: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 8080
Could not request local forwarding.

你能告诉我我做错了什么吗?谢谢!

确保您的实例配置了防火墙规则以允许 http/https 出口协议,并且实例具有 public IP。

看看这个https://cloud.google.com/ai-platform/notebooks/docs/ssh-access