feiandxs / port-releaser

Port-Releaser: A cross-platform CLI tool for quickly identifying and optionally terminating processes occupying specific ports, supporting Windows, macOS, and Linux. 一个跨平台的命令行工具,用于快速识别和释放占用特定端口的进程,支持Windows、macOS和Linux系统。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Port-Releaser

Port-Releaser is a cross-platform command-line tool designed to identify and optionally terminate processes that are occupying specific ports. It supports Windows, macOS, and Linux, making it a versatile tool for developers and system administrators.

Features

  • Cross-platform Support: Runs on Windows, macOS, and Linux.
  • Easy to Use: Quickly find processes using a specific port with a simple command.
  • Safe Process Termination: Offers the option to safely terminate the process after identification.

Installation

To install Port-Releaser, clone this repository and build the tool using Go:

git clone https://github.com/feiandxs/port-releaser.git
cd port-releaser
go build

Usage

To use Port-Releaser, simply run the following command with the desired port number:

./port-releaser <port-number>

For example, to find the process using port 8080:

./port-releaser 8080

The tool will list any processes using the specified port and prompt you to terminate them if desired.

Contributing

Contributions to Port-Releaser are welcome and appreciated. If you have suggestions for improvements or bug fixes, please submit a pull request or open an issue.

License

Forget about it, all codes in main.go are from ChatGPT.

About

Port-Releaser: A cross-platform CLI tool for quickly identifying and optionally terminating processes occupying specific ports, supporting Windows, macOS, and Linux. 一个跨平台的命令行工具,用于快速识别和释放占用特定端口的进程,支持Windows、macOS和Linux系统。


Languages

Language:Go 100.0%