tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use

训练tensorflow运行 tensorboard出错

命令:

$ tensorboard --logdir /home/class/tensorboard_log

错误:
ERROR:tensorflow:TensorBoard attempted to bind to port 6006, but it was already in use

解决方案:

输入命令:

$ lsof -i:6006

结果:
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

再次运行:

$ tensorboard --logdir /home/class/tensorboard_log

输出TensorBoard 1.11.0 at http://master:6006 (Press CTRL+C to quit)就成功了

你可能感兴趣的:(tensorboard错误 :TensorBoard attempted to bind to port 6006, but it was already in use)