Skip to main content

Inspect which processes are using ports

Project description

whichport

whichport 是一个命令行工具,用来快速排查端口占用问题。

它可以做三类事情:

  1. 根据端口号查是谁占用了这个端口
  2. 根据 PID 查这个进程占用了哪些端口
  3. 根据进程关键字查命令行里包含这个关键字的进程以及对应端口

安装

pip install whichport

用法

whichport 8800
whichport python

输出

结果会以表格形式显示,包含命中来源、PID、进程名、命令行、协议和端口等信息。

如果没有找到匹配项,工具会输出一条简短提示。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whichport-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file whichport-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: whichport-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for whichport-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c86fc1feb201631a160a7a9df395f54a6f6e3327bea52dd65157352ac59744fb
MD5 3031621b54ffca83100f64583d316804
BLAKE2b-256 e7cb6ee630d1c41e0fbff2787bef5c104ab54a759dedb9d19c5091829ee5ea03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page