📌  相关文章
📜  强制终止任何进程端口 ubuntu - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:39.259000             🧑  作者: Mango

代码示例1
sudo kill -9 $(sudo lsof -t -i:9001)


lsof   - list of files(Also used for to list related processes)

-t     - show only process ID

-i     - show only internet connections related process

:9001  - show only processes in this port number

kill   - command to kill the process

-9     - forcefully

sudo   - command to ask admin privilege(user id and password).