This repository is a Homebrew tap for the kill-server script, which helps manage and terminate processes running on a specified port on macOS and Linux systems.
First, add this tap to your Homebrew installation:
-
brew tap mj-963/kill-server
After adding the tap, you can install the kill-server script with the following command:
-
brew tap mj-963/kill-server
- To kill a process running on a specific port:
./kill-server.sh <port>
-f: Forcefully kill the process without asking for confirmation.-a: Kill all processes running on the specified port with single confirmation.
-
# Forcefully kill a process on port 8080 ./kill-server.sh -f 8080 # Kill all processes on port 8080 with confirmation ./kill-server.sh -a 8080 # Kill all processes on port 8080 forcefully ./kill-server.sh -a -f 8080
- Kill a single process running on a specified port.
- Forcefully kill a process without confirmation using the
-foption. - Kill all processes running on a specified port with the
-aoption, prompting for confirmation. - Colorful and user-friendly command-line interface.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit pull requests.
- Inspired by the need to manage processes faster and efficiently on macOS and Linux.
- Built with bash scripting and standard UNIX tools.
For support or questions, please open an issue in the GitHub repository.
- Replace
<port>with the actual port number of server you want to kill.