本人出现这个问题是因为我在windows端的pycharm操作远程的服务器,所以出现了问题,如果你不是用服务器出现的错误,那就很简单了,直接

kill -9 4969

就是简单的端口占用,如果你是用的服务器,那么就不只是端口占用这么简单了,得在xshell配置一下隧道,这个东西一段时间不用就忘了,所以记录一下。
跟着图操作就完事了:
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_服务器
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_python_02
鼠标右键点击最下面的属性:找到隧道
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_端口占用_03
点击添加:
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_python_04
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_python_05

  1. 侦听端口:你在windows需要输入的那个网址的端口,我这个例子就是http://127.0.0.1:16006/
  2. 目标端口:是你服务器侦听的端口,如果报了端口被占用,你就改一个,这个端口是你在tensorboard --logdir 'xxx/logs/' --port=12580这里配置的端口。

配置完了点击确定!
然后在terminal输入tensorboard --logdir 'xxx/logs/' --port=12580出现
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_ide_06
这种提示就说明开启成功了,在windows浏览器输入http://127.0.0.1:16006/就可以打开了!
tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use_pycharm_07