脚本专栏 发布日期:2025/2/3 浏览次数:1
Linux根据占用的端口号来关闭相应的进程的shell脚本写法。 复制代码 代码如下: kill -9 $(lsof -i:22 |awk '{print $2}' | tail -n 2)