我无法在浏览器中启动 tensorboard(safari 和 chrome)

I am not able to launch tensorboard in the browser(safari and chrome)

我的 event_file 如下:

/path/to/event_file/events.out.tfevents.1516382034.myremotehost.edu

然后我尝试使用此命令启动 tensorbord:

tensorboard --logdir=/path/to/event_file --port=6006

它给了我以下 URL:

http://myremotehost.edu:6006

但显然看

的结果
 netstat -l / -a / -t / -u / -n

端口 6006 未打开,因此我尝试使用以下命令重定向本地主机上的端口 6006:

ssh -L 6006:localhost:6006 myremotehost.edu -N

查看 netstat 的结果,它说端口 6006 正在侦听。然后我尝试使用以下方法再次启动 tensorboard:

tensorboard --logdir=/path/to/event_file --port=6006

它说:

TensorBoard attempted to bind to port 6006, but it was already in use

我做错了什么吗?我将不胜感激任何帮助。 我也试过:

tensorboard --logdir=/path/to/event_file --host=localhost --port=6006

还有:

tensorboard --logdir=/path/to/event_file --host=myremotehost.edu --port=6006

没有成功。我也尝试了不同的端口号,也没有成功。

编辑:

它不允许我回答我自己的问题,所以我 post 它作为编辑:

我的问题是,我首先使用这个 ssh 连接到我的远程主机:

ssh -L localhost:44888:localhost:55888 myusername@myremotehost.edu

并且该终端内部试图使用此启动 tensorboard:

tensorboard --logdir=/path/to/event_file --host=myremotehost.edu --port=6006

显然没有用。解决方案是,我不需要以常规方式通过 ssh 连接到 myremorehost,而是需要这样做:

1)   ssh -L localhost:4040:localhost:6006

2)   ssh -D 8080 myusername@myremotehost.edu

3)   go to the network setting in your browser and change the proxy setting as below:

Network Setting

这适用于 Chrome 和 Firefox Ubuntu 16。Safari 加载了 tensordboard 页面,但我看不到图表。

在 Safari 中你不需要输入: http://myremotehost.edu:6006

相反,在启动 tensorboard 后 --logdir=path/to/logdir 只需将其放入您的 Safari 浏览器中 http://localhost:6006