# Killer_Client **Repository Path**: PhiloKun/Killer_Client ## Basic Information - **Project Name**: Killer_Client - **Description**: Windows平台下的端口杀进程客户端,支持命令行和GUI两种方式。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-13 - **Last Updated**: 2025-05-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # killer_client A Windows client for killing processes by port. Supports both command-line and GUI (tkinter) usage. See below for English and Chinese instructions. 本项目为 Windows 平台下的端口杀进程客户端,支持命令行和图形界面(GUI)两种使用方式。 ## 目录结构 / Project Structure - `kill_by_port.py` 命令行版端口杀进程脚本 / Command-line script - `kill_by_port_gui.py` 图形界面(GUI)版端口杀进程脚本 / GUI script (tkinter) - `dist/kill_by_port_gui.exe` 打包生成的独立可执行文件(无需Python环境,直接运行)/ Standalone exe (no Python needed) - `build/` PyInstaller打包临时文件夹(可忽略) - `image/项目截图.png` 项目功能截图 / Screenshot ## 功能说明 / Features - 查询指定端口被哪个进程(PID)占用 / Query which process (PID) is using a port - 一键杀死占用该端口的进程 / Kill the process occupying the port - 支持命令行和图形界面两种操作方式 / Both CLI and GUI ## 版本说明 / Versions - **命令行版本 Command-line**:`kill_by_port.py` - **GUI版本 GUI**:`kill_by_port_gui.py` 或 or `dist/kill_by_port_gui.exe` ## 截图 / Screenshot ![项目截图](image/项目截图.png) ## 使用方法 / Usage ### 1. 命令行版 / Command-line ```bash python kill_by_port.py ``` 根据提示输入端口号,确认后可杀死对应进程。 Enter the port number as prompted, confirm to kill the process. ### 2. 图形界面(GUI)版 / GUI ```bash python kill_by_port_gui.py ``` 弹出窗口,输入端口号,点击"查询",如有进程占用可点击"杀死进程"。 A window will pop up. Enter the port, click "查询" (Query), and if a process is found, click "杀死进程" (Kill Process). ### 3. 直接运行打包好的exe / Standalone exe 无需安装Python,直接双击运行: No Python required, just double-click: ``` dist/kill_by_port_gui.exe ``` ## 打包方法 / Packaging 如需自行打包GUI版为exe,需先安装PyInstaller: To package the GUI as exe, install PyInstaller: ```bash pip install pyinstaller pyinstaller --noconsole --onefile kill_by_port_gui.py ``` 打包后exe文件在`dist/`目录下。 The exe will be in the `dist/` folder. ## 依赖说明 / Dependencies - Python 3.x(仅源码运行时需要 / only for source code) - Windows操作系统 / Windows OS - GUI版依赖tkinter(Python自带 / built-in) ## 注意事项 / Notes - 仅支持Windows平台(依赖`netstat`、`taskkill`命令)/ Windows only (uses `netstat` and `taskkill`) - 需以管理员权限运行,才能杀死部分系统进程 / Run as administrator to kill some processes --- 如有问题或建议,欢迎反馈! If you have questions or suggestions, feel free to open an issue.