killport
killport is a command-line utility for killing processes listening on specific ports. It's designed to be simple, fast, and effective. The tool is built with Rust and works on Linux and macOS.
Features
- Kill processes by port number
- Supports multiple port numbers
- Verbosity control
- Works on Linux and macOS
Installation
Easiest Way
Run the following command to automatically download and install killport:
|
Don't forget to add $HOME/.local/bin to your PATH environment variable, if it's not already present.
From Source
-
Install Rust: Follow the official Rust installation guide to set up Rust on your system.
-
Clone the repository:
-
Change to the killport directory:
-
Build and install the binary:
Binary Releases
You can download the binary releases for different architectures from the releases page and manually install them.
Usage
Examples
Kill a single process listening on port 8080:
Kill multiple processes listening on ports 8045, 8046, and 8080:
Flags
-v, --verbose Increase the verbosity level. Use multiple times for more detailed output.
-h, --help Display the help message and exit.
-V, --version Display the version information and exit.
Contributing
We welcome contributions to the killport project! Before you start, please read our Code of Conduct and the Contributing Guidelines.
To contribute, follow these steps:
- Fork the repository on GitHub.
- Clone your fork and create a new branch for your feature or bugfix.
- Make your changes, following our coding guidelines.
- Add tests for your changes and ensure all tests pass.
- Commit your changes, following our commit message guidelines.
- Push your changes to your fork and create a pull request.
We'll review your pull request and provide feedback or merge your changes.
License
This project is licensed under the MIT License. See the LICENSE file for more information.