繁体   English   中英

无法从 Google Cloud VM 实例连接到 TensorBoard 页面

[英]Cannot connect to TensorBoard page from Google Cloud VM instance

我试图从运行中打开 TensorBoard 页面

Google Cloud Compute Engine VM 实例上的tensorboard --logdir=./Train_log/tb_train_log --port=8080 并且输出网页http:<usename>:8080不可用。 我打开页面时的错误是:

Error: Could not connect to Cloud Shell on port 8080.
Ensure your server is listening on port 8080 and try again.

所以我查看了Unable to open Tensorboard in browser and Can't open port 8080 on Google Compute Engine running Debian

然后我

1) set up the fire wall with creating a new rule as tcp:8080 and IP ranges 0.0.0.0/0.  
2) changed the port to 8080 and the default output 6006, changed the host to 0.0.0.0 and 127.0.0.1. Copy and paste corresponding address like http:0.0.0.0:8080 to google chrome. 
3) use web preview through google cloud shell to the port I set as above. 

还有netstat -an | grep "LISTEN "的输出 netstat -an | grep "LISTEN "

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN 

这些都没有用,我想知道如何解决这个问题?

任何想法都会有所帮助!

我认为 GCP 中的防火墙配置阻止了端口 8080,首先打开 GCP 中的端口 8080,然后执行此命令:

tensorboard --logdir=./dir/log --port=8080 --bind_all

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM