Amazing!神秘程序占用tensorbroad端口6006

2026-04-13 12:051阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

Amazing啊!好奇怪的端口占用问题但是找不到占用的进程…

和这个帖子似乎类似:

centos07里面开启docker失败,显示2375端口被占用,但是查不到占用的应用 开发调优
vm什么网络模式,另外你不是root账号吧,命令加上sudo

我在 win11 的 WSL2 下试图开启 tensorbroad

tensorboard --logdir runs/ /home/xxxx/projects/.venv/lib/python3.11/site-packages/tensorboard/default.py:30: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources TensorFlow installation not found - running with reduced feature set. NOTE: Using experimental fast data loading logic. To disable, pass "--load_fast=false" and report issues on GitHub. More details: https://github.com/tensorflow/tensorboard/issues/4784 Address already in use Port 6006 is in use by another program. Either identify and stop that program, or start the server with a different port.

然而却无法排查到占用进程:

lsof -i:6006 <无任何输出>

曾经我重启过电脑之后好了 但还是想知道此事如何发生。

BTW,不知为何,更换端口不一定有用:

tensorboard --logdir runs/ --port=6007 /home/xxxx/projects/.venv/lib/python3.11/site-packages/tensorboard/default.py:30: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources TensorFlow installation not found - running with reduced feature set. NOTE: Using experimental fast data loading logic. To disable, pass "--load_fast=false" and report issues on GitHub. More details: https://github.com/tensorflow/tensorboard/issues/4784 Address already in use Port 6007 is in use by another program. Either identify and stop that program, or start the server with a different port. 网友解答:


--【壹】--: 土拨鼠:

win本身会占用一些端口的,wsl里面不一定能找到。

请问这个有办法在物理机上看/查询的到吗?


--【贰】--:

win本身会占用一些端口的,wsl里面不一定能找到。我就是一开始华硕奥创占了9000还是啥端口,怎么都关不掉


--【叁】--:

windows默认保留一些随机端口,是一组区间范围。具体可查阅https://zhuanlan.zhihu.com/p/474392069 状态就是 没有任何程序占用,但是无法申请使用端口。提示的消息是默认消息,不代表有进程使用。


--【肆】--:

但是按道理 tensorbroad 默认使用的 6006 端口应该不在此列…

由于我赶时间,已经暂时通过重启解决。我下次遇到再试试

感谢佬友

标签:快问快答
问题描述:

Amazing啊!好奇怪的端口占用问题但是找不到占用的进程…

和这个帖子似乎类似:

centos07里面开启docker失败,显示2375端口被占用,但是查不到占用的应用 开发调优
vm什么网络模式,另外你不是root账号吧,命令加上sudo

我在 win11 的 WSL2 下试图开启 tensorbroad

tensorboard --logdir runs/ /home/xxxx/projects/.venv/lib/python3.11/site-packages/tensorboard/default.py:30: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources TensorFlow installation not found - running with reduced feature set. NOTE: Using experimental fast data loading logic. To disable, pass "--load_fast=false" and report issues on GitHub. More details: https://github.com/tensorflow/tensorboard/issues/4784 Address already in use Port 6006 is in use by another program. Either identify and stop that program, or start the server with a different port.

然而却无法排查到占用进程:

lsof -i:6006 <无任何输出>

曾经我重启过电脑之后好了 但还是想知道此事如何发生。

BTW,不知为何,更换端口不一定有用:

tensorboard --logdir runs/ --port=6007 /home/xxxx/projects/.venv/lib/python3.11/site-packages/tensorboard/default.py:30: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources TensorFlow installation not found - running with reduced feature set. NOTE: Using experimental fast data loading logic. To disable, pass "--load_fast=false" and report issues on GitHub. More details: https://github.com/tensorflow/tensorboard/issues/4784 Address already in use Port 6007 is in use by another program. Either identify and stop that program, or start the server with a different port. 网友解答:


--【壹】--: 土拨鼠:

win本身会占用一些端口的,wsl里面不一定能找到。

请问这个有办法在物理机上看/查询的到吗?


--【贰】--:

win本身会占用一些端口的,wsl里面不一定能找到。我就是一开始华硕奥创占了9000还是啥端口,怎么都关不掉


--【叁】--:

windows默认保留一些随机端口,是一组区间范围。具体可查阅https://zhuanlan.zhihu.com/p/474392069 状态就是 没有任何程序占用,但是无法申请使用端口。提示的消息是默认消息,不代表有进程使用。


--【肆】--:

但是按道理 tensorbroad 默认使用的 6006 端口应该不在此列…

由于我赶时间,已经暂时通过重启解决。我下次遇到再试试

感谢佬友

标签:快问快答