訓(xùn)練tensorflow運(yùn)行 tensorboard出錯(cuò)
命令:
$ tensorboard --logdir /home/class/tensorboard_log
錯(cuò)誤:
ERROR:tensorflow:TensorBoard attempted to bind to port 6006, but it was already in use
解決方案:
輸入命令:
$ lsof -i:6006
結(jié)果:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
tensorboa 25243 user 3u IPv6 124016769 0t0 TCP *:x11-6
說明PID25243占用了6006端口跟压,kill掉即可
輸入命令:
$ kill -9 25243
再次運(yùn)行:
$ tensorboard --logdir /home/class/tensorboard_log
輸出TensorBoard 1.11.0 at http://master:6006 (Press CTRL+C to quit)
就成功了