https://github.com/mj-963/kill-server
kill-server is a bash script to manage and terminate processes running on a specified port on macOS and Linux systems.
https://github.com/mj-963/kill-server
bash port process-management script server
Last synced: 3 months ago
JSON representation
kill-server is a bash script to manage and terminate processes running on a specified port on macOS and Linux systems.
- Host: GitHub
- URL: https://github.com/mj-963/kill-server
- Owner: mj-963
- License: mit
- Created: 2024-07-11T12:06:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-11T13:36:45.000Z (over 1 year ago)
- Last Synced: 2024-07-12T13:29:00.899Z (over 1 year ago)
- Topics: bash, port, process-management, script, server
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kill-server
`kill-server` is a bash script to manage and terminate processes running on a specified port on macOS and Linux systems.
## Features
- Kill a single process running on a specified port.
- Forcefully kill a process without confirmation using the `-f` option.
- Kill all processes running on a specified port with the `-a` option, prompting for confirmation.
- Colorful and user-friendly command-line interface.
## Installation
###### Using Homebrew
- ```bash
brew tap mj-963/kill-server
brew install kill-server
###### Manual Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/kill-server.git
cd kill-server
2. Make the script executable:
```bash
chmod +x kill-server.sh
3. Optionally, move the script to a directory in your PATH to use it globally:
```bash
sudo mv kill-server.sh /usr/local/bin/kill-server
## Usage
###### Basic Usage
- To kill a process running on a specific port:
```bash
./kill-server.sh
###### Options
- `-f`: Forcefully kill the process without asking for confirmation.
- `-a`: Kill all processes running on the specified port with single confirmation.
###### Example
- ```bash
# 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
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/mj-963/kill-server/blob/main/LICENSE) file for details.
## Contributing
Contributions are welcome! Please feel free to submit pull requests.
## Acknowledgments
- Inspired by the need to manage processes faster and efficiently on macOS and Linux.
- Built with bash scripting and standard UNIX tools.
## Support
For support or questions, please open an issue in the GitHub repository.
### Notes:
- Replace `` with the actual port number of server you want to kill.