Tensorflow: how to close tensorboard server

In my case, CTRL+C doesn't work. The following works for me:

  1. CTRL+Z halts the on-going TensorBoard process.

  2. Check the id of this halted process by typing in the terminal

    jobs -l

  3. kill this process, otherwise you can't restart TensorBoard with the default port 6006 (of course, you can change the port with --port=xxxx)

    kill -9 #PROCESS_ID


You can kill it without any harm! TensorBoard simply reads your log files and generates visualizations based on them in memory, so you don't need to worry about file corruption, etc.